mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-24 16:39:31 +02:00
feat: tools normalized
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user