File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,11 @@ import LanguageSetting from "./LanguageSetting";
44import PolicySection from "./Policy" ;
55import FAQSection from "./Question" ;
66import { useAuthStore } from "../../store/auth" ;
7+ import { useNavigate } from "react-router-dom" ;
78
89function SettingPage ( ) {
910 const { logout } = useAuthStore ( ) ;
11+ const navigate = useNavigate ( ) ;
1012 return (
1113 < main className = "pb-52 pt-16 mt-5 bg-white" >
1214 < div className = "flex flex-col items-center gap-5 w-full px-5" >
@@ -18,12 +20,12 @@ function SettingPage() {
1820 className = " text-main font-bold underline cursor-pointer"
1921 onClick = { ( ) => {
2022 logout ( ) ;
23+ navigate ( "/login" ) ;
2124 } }
2225 >
2326 Logout
2427 </ p >
2528 </ div >
26-
2729 < BottomNavigation />
2830 </ main >
2931 ) ;
You can’t perform that action at this time.
0 commit comments