From 75337bcf83fb604c0f896a6e79ba1d27c2a01614 Mon Sep 17 00:00:00 2001 From: Himanshu Sharma Date: Tue, 9 Jul 2024 19:25:53 +0530 Subject: [PATCH] drop menu added --- .../components/Create Issue/CreateIssue.tsx | 119 +++++++++++++----- .../src/components/Create Issue/State.tsx | 34 ----- 2 files changed, 87 insertions(+), 66 deletions(-) delete mode 100644 mango-frontend/src/components/Create Issue/State.tsx diff --git a/mango-frontend/src/components/Create Issue/CreateIssue.tsx b/mango-frontend/src/components/Create Issue/CreateIssue.tsx index f6a62a5..242cb21 100644 --- a/mango-frontend/src/components/Create Issue/CreateIssue.tsx +++ b/mango-frontend/src/components/Create Issue/CreateIssue.tsx @@ -1,67 +1,122 @@ - -import { Button } from "@/components/ui/button" +import * as React from "react"; +import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter, - DialogClose -} from "@/components/ui/dialog" -import { Input } from "@/components/ui/input" -import { Textarea } from "@/components/ui/textarea" + DialogClose, +} from "@/components/ui/dialog"; +import { Input } from "@/components/ui/input"; +import { Textarea } from "@/components/ui/textarea"; +import { + DropdownMenu, + DropdownMenuContent, + DropdownMenuLabel, + DropdownMenuRadioGroup, + DropdownMenuRadioItem, + DropdownMenuSeparator, + DropdownMenuTrigger, +} from "@/components/ui/dropdown-menu"; interface CreateIssueProps { isOpen: boolean; onClose: () => void; } -export function CreateIssue({ isOpen, onClose }: CreateIssueProps) { +const StateDropdown: React.FC = () => { + const [position, setPosition] = React.useState("bottom"); + return ( + + + + + + Panel Position + + + Top + Bottom + Right + + + + ); +}; +const PriorityDropdown: React.FC = () => { + const [position, setPosition] = React.useState("bottom"); + + return ( + + + + + + Panel Position + + + Top + Bottom + Right + + + + ); +}; + +const AssigneesDropdown: React.FC = () => { + const [position, setPosition] = React.useState("bottom"); + + return ( + + + + + + Panel Position + + + Top + Bottom + Right + + + + ); +}; + +export function CreateIssue({ isOpen, onClose }: CreateIssueProps) { return ( - + Create Issue
- +
-