Skip to content

Commit

Permalink
Change route
Browse files Browse the repository at this point in the history
  • Loading branch information
fongsean committed Nov 22, 2023
1 parent b155b94 commit c3cd0c5
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { theme } from "./Theme";
import {
createBrowserRouter,
Navigate,
RouterProvider,
} from "react-router-dom";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
import { CssBaseline, ThemeProvider } from "@mui/material";
import Configuration from "./pages/Configuration/Configuration";
import PatientSummary from "./pages/PatientSummary/PatientSummary";
Expand All @@ -19,7 +15,7 @@ function App() {

const router = createBrowserRouter([
{
path: "/",
path: "/ehr",
element: <DashboardLayout />,
children: [
{
Expand All @@ -32,10 +28,6 @@ function App() {
},
],
},
{
path: "*",
element: <Navigate to="/" replace />,
},
]);

return (
Expand Down

0 comments on commit c3cd0c5

Please sign in to comment.