feat: tools by category

This commit is contained in:
Ibrahima G. Coulibaly
2024-06-25 09:35:44 +01:00
parent 2b8dcdbd64
commit 429ca09686
8 changed files with 239 additions and 166 deletions

View File

@@ -3,12 +3,17 @@ import { Navigate } from 'react-router-dom';
import { lazy } from 'react';
const Home = lazy(() => import('../pages/home'));
const ToolsByCategory = lazy(() => import('../pages/tools-by-category'));
const routes: RouteObject[] = [
{
path: '/',
element: <Home />
},
{
path: '/categories/:categoryName',
element: <ToolsByCategory />
},
{
path: '*',
element: <Navigate to="404" />