Skip to content

Commit

Permalink
Show catalog in root
Browse files Browse the repository at this point in the history
  • Loading branch information
minsoeaung committed Dec 2, 2023
1 parent d957fdf commit 3d54ce6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Client/src/pages/router.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { createBrowserRouter, Navigate, Outlet } from 'react-router-dom';
import Root from './Root';
import { lazy } from 'react';
import HomePage from './Home';
import NotFoundPage from './NotFound';
import { useAuth } from '../context/AuthContext.tsx';

Expand Down Expand Up @@ -36,7 +35,7 @@ const router = createBrowserRouter([
path: '/',
element: <Root />,
children: [
{ path: '', element: <HomePage /> },
{ path: '', element: <CatalogPage /> },
{ path: 'about', element: <About /> },
{ path: 'register', element: <Register /> },
{ path: 'login', element: <Login /> },
Expand Down

0 comments on commit 3d54ce6

Please sign in to comment.