diff --git a/apps/client/src/app/App.tsx b/apps/client/src/app/App.tsx index 82f9738..6be0a6f 100644 --- a/apps/client/src/app/App.tsx +++ b/apps/client/src/app/App.tsx @@ -3,6 +3,7 @@ import { ToasterWithMax } from '@/shared/ui'; import { ErrorPage } from '@/pages/ErrorPage/ErrorPage'; import { lazy, Suspense } from 'react'; import { Loading } from '@/shared/ui'; +import { Helmet } from 'react-helmet-async'; // lazy 로딩 const HomePage = lazy(() => @@ -23,27 +24,51 @@ const router = createBrowserRouter([ { path: '/', element: ( - }> - - + <> + + BooLock - 홈 + + + }> + + + ), errorElement: , }, { path: '/workspace/:workspaceId', element: ( - }> - - + <> + + BooLock - 작업 공간 + + + }> + + + ), errorElement: , }, { path: '*', element: ( - }> - - + <> + + BooLock - 페이지를 찾을 수 없음 + + + }> + + + ), }, ]); diff --git a/apps/client/src/pages/HomePage/HomePage.tsx b/apps/client/src/pages/HomePage/HomePage.tsx index bd30a87..abe0c37 100644 --- a/apps/client/src/pages/HomePage/HomePage.tsx +++ b/apps/client/src/pages/HomePage/HomePage.tsx @@ -1,7 +1,6 @@ import { Banner, HomeHeader, WorkspaceContainer, WorkspaceModal } from '@/widgets'; import { useClassBlockStore, useLoadingStore, useWorkspaceStore } from '@/shared/store'; -import { Helmet } from 'react-helmet-async'; import { Loading } from '@/shared/ui'; import { useEffect } from 'react'; @@ -23,13 +22,6 @@ export const HomePage = () => { return ( <> - - BooLock - 홈 - - {isPending && }
diff --git a/apps/client/src/pages/NotFound/NotFound.tsx b/apps/client/src/pages/NotFound/NotFound.tsx index 0336149..32fc50a 100644 --- a/apps/client/src/pages/NotFound/NotFound.tsx +++ b/apps/client/src/pages/NotFound/NotFound.tsx @@ -1,4 +1,3 @@ -import { Helmet } from 'react-helmet-async'; import { ErrorContent } from '@/shared/ui/error/ErrorContent'; // TODO: 메세지 상수화 shared/utils/constants.ts 안에 관리 @@ -10,13 +9,6 @@ import { ErrorContent } from '@/shared/ui/error/ErrorContent'; export const NotFound = () => { return ( <> - - BooLock - 페이지를 찾을 수 없음 - - ); diff --git a/apps/client/src/pages/Workspacepage/WorkspacePage.tsx b/apps/client/src/pages/Workspacepage/WorkspacePage.tsx index a58093b..32f7bb1 100644 --- a/apps/client/src/pages/Workspacepage/WorkspacePage.tsx +++ b/apps/client/src/pages/Workspacepage/WorkspacePage.tsx @@ -1,6 +1,5 @@ import { ImageTagModal, CoachMark, WorkspaceContent, WorkspacePageHeader } from '@/widgets'; import { useGetWorkspace, usePreventLeaveWorkspacePage } from '@/shared/hooks'; -import { Helmet } from 'react-helmet-async'; import { Loading } from '@/shared/ui'; import { NotFound } from '@/pages/NotFound/NotFound'; import { useParams } from 'react-router-dom'; @@ -43,13 +42,6 @@ export const WorkspacePage = () => { return ( <> - - BooLock - 작업 공간 - -
{isPending && } {isCoachMarkOpen && }