<BrowserRouter>
<Routes>
<Route path="/" element={<PrivateRoutes />} >
<Route path="/dashboard" element={<Dashboard />} />
<Route path="/about" element={<About />} />
</Route>
<Route path="/login" element={<Login />} />
<Route path="*" element={<PageNotFound />} />
</Routes>
</BrowserRouter>