Skip to content

Commit 214ba50

Browse files
committed
Add language select option to modal
1 parent 80044f4 commit 214ba50

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

frontend/peerprep/app/components/queueupmodal/queuemodal.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useDisclosure } from "@mantine/hooks";
2-
import { Modal, Button, MultiSelect, Text, Grid } from "@mantine/core";
2+
import { Modal, Button, MultiSelect, Text, Grid, Select } from "@mantine/core";
33
import { useForm } from "@mantine/form";
44
import classes from "./queuemodal.module.css";
55

@@ -61,6 +61,15 @@ export default function QueueModal() {
6161
}}
6262
/>
6363
</Grid.Col>
64+
<Grid.Col span={12}>
65+
<Select
66+
label="Language"
67+
placeholder="Pick one"
68+
data={["C++", "Python", "Java", "JavaScript"]}
69+
searchable
70+
{...form.getInputProps("language")}
71+
/>
72+
</Grid.Col>
6473
<Grid.Col span={12}>
6574
<Button fullWidth type="submit" mt="md" onClick={close}>
6675
Confirm

0 commit comments

Comments
 (0)