- 홈 화면 라우팅 및 기본 파일 생성
This commit is contained in:
@@ -6,6 +6,7 @@ import { useAuthStore } from './store/authStore';
|
|||||||
import { PageRouting } from './const/PageRouting';
|
import { PageRouting } from './const/PageRouting';
|
||||||
import LoginPage from './ui/page/account/login/LoginPage';
|
import LoginPage from './ui/page/account/login/LoginPage';
|
||||||
import ResetPasswordPage from './ui/page/account/resetPassword/ResetPasswordPage';
|
import ResetPasswordPage from './ui/page/account/resetPassword/ResetPasswordPage';
|
||||||
|
import { HomePage } from './ui/page/home/HomePage';
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const { authData } = useAuthStore();
|
const { authData } = useAuthStore();
|
||||||
@@ -18,6 +19,7 @@ function App() {
|
|||||||
<Route element={<SignUpPage />} path={PageRouting["SIGN_UP"].path} />
|
<Route element={<SignUpPage />} path={PageRouting["SIGN_UP"].path} />
|
||||||
<Route element={<ResetPasswordPage />} path={PageRouting["RESET_PASSWORD"].path} />
|
<Route element={<ResetPasswordPage />} path={PageRouting["RESET_PASSWORD"].path} />
|
||||||
{!authData ? <Route element={<Navigate to={PageRouting["LOGIN"].path} />} path="*" /> : null}
|
{!authData ? <Route element={<Navigate to={PageRouting["LOGIN"].path} />} path="*" /> : null}
|
||||||
|
<Route element={<HomePage />} path={PageRouting["HOME"].path} />
|
||||||
</Route>
|
</Route>
|
||||||
</Routes>
|
</Routes>
|
||||||
</Router>
|
</Router>
|
||||||
|
|||||||
7
src/ui/page/home/HomePage.tsx
Normal file
7
src/ui/page/home/HomePage.tsx
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
export const HomePage = () => {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
HomePage
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user