Files
scheduler-front/src/App.tsx
geonhee-min af3fa26f3b
All checks were successful
Test CI / build (push) Successful in 16s
issue #37
- 기능 구현 1차 완료(동작 확인 필요)
2025-12-02 16:50:24 +09:00

28 lines
1012 B
TypeScript

import './App.css';
import SignUpPage from './ui/page/account/signup/SignUpPage';
import Layout from './layouts/Layout';
import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom';
import { useAuthStore } from './store/authStore';
import { PageRouting } from './const/PageRouting';
import LoginPage from './ui/page/account/login/LoginPage';
import ResetPasswordPage from './ui/page/account/resetPassword/ResetPasswordPage';
function App() {
const { authData } = useAuthStore();
return (
<Router>
<Routes>
<Route element={<Layout />}>
<Route element={<LoginPage />} path={PageRouting["LOGIN"].path} />
<Route element={<SignUpPage />} path={PageRouting["SIGN_UP"].path} />
<Route element={<ResetPasswordPage />} path={PageRouting["RESET_PASSWORD"].path} />
{!authData ? <Route element={<Navigate to={PageRouting["LOGIN"].path} />} path="*" /> : null}
</Route>
</Routes>
</Router>
);
}
export default App