Skip to content

Commit a761f91

Browse files
authored
Merge pull request #17 from GoIT-Python-Web/loginForm
Update App
2 parents b100706 + e7a07da commit a761f91

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/App.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,20 @@ import UsersManagementPage from "./pages/UsersManagement/UsersManagementPage.jsx
77
export default function App() {
88
const MainPage = lazy(() => import("./pages/main/MainPage.jsx"));
99
const ProfilePage = lazy(() => import("./pages/profile/ProfilePage.jsx"));
10+
const SignUpPage = lazy(() => import("./pages/auth/SignUpPage.jsx"));
11+
1012
return (
1113
<Layout>
1214
<Routes>
1315
<Route path="/" element={<Navigate to="/posts" replace />} />
1416
<Route path="/posts" element={<MainPage />} />
1517
<Route path="/my-profile" element={<ProfilePage />} />
18+
<Route
19+
path="/register"
20+
element={
21+
<SignUpPage/>
22+
}
23+
/>
1624
<Route path="/admin/users" element={<UsersManagementPage />} />
1725
</Routes>
1826
</Layout>

0 commit comments

Comments
 (0)