Skip to content

Commit

Permalink
feat/#49/드롭다운을 통해 마이페이지 접근 시 드롭다운 닫게 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmj12 committed Jan 15, 2025
1 parent 13c3883 commit 7513c77
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions src/components/Navigation/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { Popover, PopoverContent, PopoverTrigger } from "../ui/popover";

import { Button } from "../ui/button";
import Link from "next/link";
import { PopoverClose } from "@radix-ui/react-popover";

const Navigation: React.FC = () => {
const [isModalOpen, setIsModalOpen] = useState(false);
Expand Down Expand Up @@ -143,20 +144,22 @@ const Navigation: React.FC = () => {
</PopoverTrigger>
<PopoverContent>
<Link href="/mypage">
<Button
variant="ghost"
className="w-full justify-start"
onClick={() => {}}
>
<Image
style={{ cursor: "pointer", marginRight: "8px" }}
src={"/icons/user_2.svg"}
width={18}
height={18}
alt="mypage"
/>
내 정보
</Button>
<PopoverClose>
<Button
variant="ghost"
className="w-full justify-start"
onClick={() => {}}
>
<Image
style={{ cursor: "pointer", marginRight: "8px" }}
src={"/icons/user_2.svg"}
width={18}
height={18}
alt="mypage"
/>
내 정보
</Button>
</PopoverClose>
</Link>
<Button variant="ghost" className="w-full justify-start">
<Image
Expand Down

0 comments on commit 7513c77

Please sign in to comment.