diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index b3f1cee9..cee1802a 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -5,7 +5,6 @@ import { MainPage, ClientPage, HostPage } from './pages'; import { QueryClientProvider } from '@tanstack/react-query'; import { queryClient } from '@apis/index'; import withUserId from '@hocs/withUserId'; -import { HostRedirect } from '@components/host'; function AppComponent() { return ( @@ -21,7 +20,7 @@ function AppComponent() { } /> } /> } /> - } /> + } /> } /> diff --git a/frontend/src/components/common/Header.tsx b/frontend/src/components/common/Header.tsx index 27d3788c..efca7c6e 100644 --- a/frontend/src/components/common/Header.tsx +++ b/frontend/src/components/common/Header.tsx @@ -4,11 +4,9 @@ import { useNavigate } from 'react-router-dom'; import SearchIcon from '@assets/icons/search_icon.svg'; import VideoIcon from '@assets/icons/video_icon.svg'; import { ASSETS } from '@constants/assets'; -import { getStoredId } from '@utils/id'; const Header = () => { const navigate = useNavigate(); - const userId = getStoredId(); return ( @@ -22,7 +20,7 @@ const Header = () => { - navigate(`/host/${userId}`)}> + navigate('/host')}> 스튜디오 @@ -121,4 +119,4 @@ const StudioBox = styled.div` } `; -const VideoIconStyled = styled(VideoIcon)``; \ No newline at end of file +const VideoIconStyled = styled(VideoIcon)``; diff --git a/frontend/src/components/host/HostRedirect.tsx b/frontend/src/components/host/HostRedirect.tsx deleted file mode 100644 index 288545de..00000000 --- a/frontend/src/components/host/HostRedirect.tsx +++ /dev/null @@ -1,8 +0,0 @@ -import { getStoredId } from '@utils/id'; -import { Navigate } from 'react-router-dom'; - -export default function HostRedirect() { - const userId = getStoredId(); - - return ; -} diff --git a/frontend/src/components/host/index.ts b/frontend/src/components/host/index.ts index d57f1333..67567f69 100644 --- a/frontend/src/components/host/index.ts +++ b/frontend/src/components/host/index.ts @@ -1,3 +1,2 @@ export { default as Header } from './Header'; export { default as Setting } from './Setting'; -export { default as HostRedirect } from './HostRedirect';