snowballtools-base/packages/frontend/src/App.tsx
Nabarun Gogoi 4f6a523f56
Create layout for home page (#6)
* 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>
2023-12-11 20:05:34 +05:30

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;