diff --git a/src/components/global/GlobalNavigationBar.tsx b/src/components/global/GlobalNavigationBar.tsx index 6647251..d74992f 100644 --- a/src/components/global/GlobalNavigationBar.tsx +++ b/src/components/global/GlobalNavigationBar.tsx @@ -16,6 +16,7 @@ import { ReactComponent as User } from '../../assets/user.svg'; import { ReactComponent as Login } from '../../assets/btn_login.svg'; import { ReactComponent as Logout } from '../../assets/btn_logout.svg'; import useLogOutMutation from '../../apis/auth/useLogOutMutation'; +import useUserViewState from '../../stores/userViewState'; import instance from '../../apis/instance'; @@ -29,6 +30,7 @@ const GlobalNavigationBar = (props: { children?: React.ReactNode }) => { useRegisterStore(); const logOutMutation = useLogOutMutation(prevUrl); + const { viewUserData } = useUserViewState(); const [userData, setUserData] = useState({ nickname: '', profileId: '', @@ -120,7 +122,7 @@ const GlobalNavigationBar = (props: { children?: React.ReactNode }) => {