Skip to content

Commit

Permalink
fix: 로그인 후 리다이렉션 버그 수정 (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonddori authored Jul 20, 2024
1 parent 3d94375 commit 7ad5150
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/app/Providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<ThemeProvider theme={theme}>
<CssBaseline />
Expand Down
3 changes: 3 additions & 0 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down Expand Up @@ -45,6 +46,8 @@ const Header = () => {
}
}, [user]);

useCurrentPath();

return (
<>
<Box
Expand Down

0 comments on commit 7ad5150

Please sign in to comment.