mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-21 15:09:32 +02:00
feat: tools normalized
This commit is contained in:
@@ -7,9 +7,14 @@ import { ThemeProvider } from '@mui/material';
|
||||
import theme from '../config/muiConfig';
|
||||
import { CustomSnackBarProvider } from '../contexts/CustomSnackBarContext';
|
||||
import { SnackbarProvider } from 'notistack';
|
||||
import { tools } from '../tools';
|
||||
|
||||
const AppRoutes = () => {
|
||||
return useRoutes(routesConfig);
|
||||
const updatedRoutesConfig = [...routesConfig];
|
||||
tools.forEach((tool) => {
|
||||
updatedRoutesConfig.push({ path: tool.path, element: tool.component() });
|
||||
});
|
||||
return useRoutes(updatedRoutesConfig);
|
||||
};
|
||||
|
||||
function App() {
|
||||
|
Reference in New Issue
Block a user