Merge pull request #437 from bluewave-labs/feat/select-component

Select component
This commit is contained in:
Alexander Holliday authored and GitHub committed 2024-07-24 11:35:15 -07:00
commit be10a16a73
10 files changed
+232 -203

No files matched your search

+11 -13
View File
@@ -1,10 +1,11 @@
import { useTheme } from "@emotion/react";
import { Box, Stack, Typography } from "@mui/material";
import Button from "../../Components/Button";
import "./index.css";
import Field from "../../Components/Inputs/Field";
import Link from "../../Components/Link";
import Select from "../../Components/Inputs/Select";
import "./index.css";
const Settings = () => {
const theme = useTheme();
@@ -38,22 +39,19 @@ const Settings = () => {
</Typography>
</Box>
<Stack gap={theme.gap.xl}>
{/* TODO - build select component */}
<Field
type="text"
<Select
id="display-timezone"
label="Display timezone"
placeholder="America / Toronto"
value=""
onChange={() => console.log("Disabled")}
value="est"
onChange={() => console.log("disabled")}
items={[{ _id: "est", name: "America / Toronto" }]}
/>
<Field
type="text"
<Select
id="server-timezone"
label="Server timezone"
placeholder="America / Toronto"
value=""
onChange={() => console.log("Disabled")}
value="est"
onChange={() => console.log("disabled")}
items={[{ _id: "est", name: "America / Toronto" }]}
/>
</Stack>
</Stack>