From 1ac5e35326bf97b923c301f2740be3e1379e4bcc Mon Sep 17 00:00:00 2001 From: yeonddori Date: Sun, 21 Jul 2024 06:38:49 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=ED=9B=84?= =?UTF-8?q?=20=EB=A6=AC=EB=8B=A4=EC=9D=B4=EB=A0=89=EC=85=98=20=EB=B2=84?= =?UTF-8?q?=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #106 --- src/app/Providers.tsx | 3 --- src/components/Header.tsx | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/Providers.tsx b/src/app/Providers.tsx index dc46845..8fff1eb 100644 --- a/src/app/Providers.tsx +++ b/src/app/Providers.tsx @@ -4,13 +4,10 @@ import { CssBaseline, ThemeProvider } from '@mui/material'; import { createStore, Provider } from 'jotai'; import theme from '@/constants/theme'; -import useCurrentPath from '@/hooks/useCurrentPath'; const store = createStore(); const Providers = ({ children }: { children: React.ReactNode }) => { - useCurrentPath(); - return ( diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 0c2adf0..15a489a 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -7,6 +7,7 @@ import { Avatar, Box, Button, Link, Stack, Typography } from '@mui/material'; import { getUser } from '@/app/api/user'; import { mainCategory } from '@/constants/category'; import color from '@/constants/color'; +import useCurrentPath from '@/hooks/useCurrentPath'; import useGetUser from '@/hooks/useGetUser'; const Header = () => { @@ -45,6 +46,8 @@ const Header = () => { } }, [user]); + useCurrentPath(); + return ( <>