forked from cerc-io/snowballtools-base
Nabarun Gogoi
4f6a523f56
* Create layout for sidebar and projects page * Refactor routes for dashboard * Add navigation to sidebar elements * Update README * Remove space in class name --------- Co-authored-by: neeraj <neeraj.rtly@gmail.com>
20 lines
414 B
TypeScript
20 lines
414 B
TypeScript
import React from 'react';
|
|
import { createBrowserRouter, RouterProvider } from 'react-router-dom';
|
|
|
|
import Dashboard from './pages/dashboard';
|
|
import { dashboardRoutes } from './pages/dashboard/routes';
|
|
|
|
const router = createBrowserRouter([
|
|
{
|
|
path: '/',
|
|
element: <Dashboard />,
|
|
children: dashboardRoutes,
|
|
},
|
|
]);
|
|
|
|
function App() {
|
|
return <RouterProvider router={router} />;
|
|
}
|
|
|
|
export default App;
|