feat: tools normalized

This commit is contained in:
Ibrahima G. Coulibaly
2024-06-22 22:06:16 +01:00
parent 17ba68be34
commit 23f50ffead
36 changed files with 2625 additions and 1045 deletions

View File

@@ -1,29 +1,18 @@
import {RouteObject} from "react-router-dom";
import {Navigate} from "react-router-dom";
import {ImagesConfig} from "../pages/images/ImagesConfig";
import {lazy} from "react";
import {StringConfig} from "../pages/string/StringConfig";
import { RouteObject } from 'react-router-dom';
import { Navigate } from 'react-router-dom';
import { lazy } from 'react';
const Home = lazy(() => import("../pages/home"));
const Home = lazy(() => import('../pages/home'));
const routes: RouteObject[] = [
{
path: "/",
element: <Home/>,
path: '/',
element: <Home />
},
{
path: "images",
children: ImagesConfig
},
{
path: "string",
children: StringConfig
},
{
path: "*",
element: <Navigate to="404"/>,
},
path: '*',
element: <Navigate to="404" />
}
];
export default routes;