From 2499080695987fe40318e42bad176dafec0fa2ec Mon Sep 17 00:00:00 2001 From: eunhak Date: Wed, 3 Apr 2024 23:12:16 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20navigation=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useNavigation.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hooks/useNavigation.ts b/src/hooks/useNavigation.ts index 3db1e288..164dff29 100644 --- a/src/hooks/useNavigation.ts +++ b/src/hooks/useNavigation.ts @@ -7,7 +7,10 @@ const useNavigation = () => { router.back(); }; - return { goBack }; + const goHome = () => { + router.push('/'); + }; + return { goBack, goHome }; }; export default useNavigation;