From 0871137420ae60f3d6c4909ba24e90be1eb388ec Mon Sep 17 00:00:00 2001 From: Ftps Date: Fri, 13 Oct 2023 09:54:30 +0900 Subject: [PATCH 1/2] 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()}/> ログアウト From 3214076781fd7a720024a1240fdb93f75829c3e2 Mon Sep 17 00:00:00 2001 From: Ftps Date: Fri, 13 Oct 2023 09:55:00 +0900 Subject: [PATCH 2/2] Update pnpm-lock.yaml --- pnpm-lock.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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