From 0871137420ae60f3d6c4909ba24e90be1eb388ec Mon Sep 17 00:00:00 2001 From: Ftps Date: Fri, 13 Oct 2023 09:54:30 +0900 Subject: [PATCH] logout user --- src/components/avatar.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()}/> ログアウト