Skip to content

Commit 6fe1045

Browse files
committed
Built user drop down
1 parent b2ea491 commit 6fe1045

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

app/issues/[id]/AssigneeSelect.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { Select } from "@radix-ui/themes";
2+
import React from "react";
3+
4+
const AssigneeSelect = () => {
5+
return (
6+
<Select.Root>
7+
<Select.Trigger placeholder="Assign.." />
8+
<Select.Content>
9+
<Select.Group>
10+
<Select.Label>Suggestions</Select.Label>
11+
<Select.Item value="1">Apple</Select.Item>
12+
</Select.Group>
13+
</Select.Content>
14+
</Select.Root>
15+
);
16+
};
17+
18+
export default AssigneeSelect;

app/issues/[id]/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import DeleteIssueButton from "./DeleteIssueButton";
77
import { getServerSession } from "next-auth";
88
import { authOptions } from "@/app/auth/authOptions";
99
import { cache } from "react";
10+
import AssigneeSelect from "./AssigneeSelect";
1011

1112
interface Props {
1213
params: Promise<{
@@ -37,6 +38,7 @@ const IssueDetailPage = async ({ params }: Props) => {
3738
{session && (
3839
<Box>
3940
<Flex direction="column" gap="4">
41+
<AssigneeSelect />
4042
<EditIssueButton issueId={issue.id} />
4143
<DeleteIssueButton issueId={issue.id} />
4244
</Flex>

0 commit comments

Comments
 (0)