diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 14fe75e..79d3dfc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,4 +1,4 @@ -lockfileVersion: '6.0' +lockfileVersion: '6.1' settings: autoInstallPeers: true diff --git a/src/components/avatar.tsx b/src/components/avatar.tsx index da3e1ac..0793c82 100644 --- a/src/components/avatar.tsx +++ b/src/components/avatar.tsx @@ -22,10 +22,11 @@ import { } from "@/components/ui/alert-dialog"; import Link from "next/link"; import { useTranslations } from 'next-intl'; +import { useAuth } from "@/hooks/auth"; export const AvatarButton = () => { const t = useTranslations('Dashboard'); - + const { logoutUser } = useAuth() return ( @@ -59,7 +60,7 @@ export const AvatarButton = () => { - + logoutUser()}/> ログアウト