Skip to content

Commit

Permalink
🔧 update: menu-option component, add useModal provider.
Browse files Browse the repository at this point in the history
  • Loading branch information
yashdev9274 committed Jun 15, 2024
1 parent 47781f0 commit 36fe75a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
File renamed without changes.
5 changes: 4 additions & 1 deletion src/components/sidebar/menu-options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import {
CommandList,
} from '../ui/command'
import Link from 'next/link'
import CustomModal from '../global/custom-modal'
import { useModal } from '@/providers/modal-provider'


type Props = {
Expand All @@ -47,7 +49,7 @@ const MenuOptions = ({
user,
defaultOpen,
}: Props) => {
// const { setOpen } = useModal()
const { setOpen } = useModal()
const [isMounted, setIsMounted] = useState(false)

const openState = useMemo(
Expand Down Expand Up @@ -232,6 +234,7 @@ const MenuOptions = ({
<SheetClose>
<Button
className="w-full flex gap-2"
onClick={() => { }}
>
<PlusCircleIcon size={15} />
Create Sub Account
Expand Down

0 comments on commit 36fe75a

Please sign in to comment.