Update App.js
This commit is contained in:
parent
d70fda6d3a
commit
a2ca60ed8f
35
src/App.js
35
src/App.js
@ -65,22 +65,22 @@ const App = () => {
|
|||||||
draggable
|
draggable
|
||||||
pauseOnHover
|
pauseOnHover
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route path="/" element={<Login />} />
|
<Route path="/" element={<Login />} />
|
||||||
|
|
||||||
{/* Main dashboard route */}
|
{/* Main dashboard route */}
|
||||||
<Route path="/dashboard" element={<Dashboard />}>
|
<Route path="/dashboard" element={<Dashboard />}>
|
||||||
<Route index element={<HomePage />} />
|
<Route index element={<HomePage />} />
|
||||||
|
|
||||||
{/* Setup section with all maintenance routes */}
|
{/* Setup section with all maintenance routes */}
|
||||||
<Route path="setup" element={<Setup />}>
|
<Route path="setup" element={<Setup />}>
|
||||||
<Route index element={<div>Select a setup option from the menu</div>} />
|
<Route index element={<div>Select a setup option from the menu</div>} />
|
||||||
<Route path="user-maintenance" element={<UserMaintenance />} />
|
<Route path="user-maintenance" element={<UserMaintenance />} />
|
||||||
<Route path="user-group-maintenance" element={<UserGroupMaintenance />} />
|
<Route path="user-group-maintenance" element={<UserGroupMaintenance />} />
|
||||||
<Route path="menu-maintenance" element={<MenuMaintenance />} />
|
<Route path="menu-maintenance" element={<MenuMaintenance />} />
|
||||||
<Route path="sub-menu-maintenance/:menuItemId" element={<SubMenuMaintenance/>} />
|
<Route path="sub-menu-maintenance/:menuItemId" element={<SubMenuMaintenance />} />
|
||||||
|
|
||||||
<Route path="menu-access-control" element={<MenuAccessControl />} />
|
<Route path="menu-access-control" element={<MenuAccessControl />} />
|
||||||
<Route path="system-parameters" element={<SystemParameters />} />
|
<Route path="system-parameters" element={<SystemParameters />} />
|
||||||
<Route path="access-type" element={<AccessType />} />
|
<Route path="access-type" element={<AccessType />} />
|
||||||
@ -90,20 +90,23 @@ const App = () => {
|
|||||||
{/* Additional components */}
|
{/* Additional components */}
|
||||||
<Route path="code-extension" element={<CodeExtension />} />
|
<Route path="code-extension" element={<CodeExtension />} />
|
||||||
<Route path="dynamic-table" element={<DynamicTable />} />
|
<Route path="dynamic-table" element={<DynamicTable />} />
|
||||||
|
|
||||||
</Route>
|
</Route>
|
||||||
<Route path="dashboard-runner-all" element={<DashboardRunnerAll/>}/>
|
<Route path="dashboard-runner-all" element={<DashboardRunnerAll />} />
|
||||||
<Route path="dashboard-new-all" element={<DashboardNewAll/>}/>
|
<Route path="dashboard-new-all" element={<DashboardNewAll />} />
|
||||||
<Route path="dashboard-new-add" element={<DashboardNewAdd/>}/>
|
<Route path="dashboard-new-add" element={<DashboardNewAdd />} />
|
||||||
<Route path="dashboard-new-edit/:id" element={<DashboardNewEdit/>}/>
|
<Route path="dashboard-new-edit/:id" element={<DashboardNewEdit />} />
|
||||||
<Route path="edit-new-dash/:id" element={<EditNewDash/>}/>
|
<Route path="edit-new-dash/:id" element={<EditNewDash />} />
|
||||||
<Route path="dashrunner/:id" element={ <DashboardRunner/>}/>
|
<Route path="dashrunner/:id" element={<DashboardRunner />} />
|
||||||
|
|
||||||
<Route path="reports" element={<Report />} />
|
<Route path="reports" element={<Report />} />
|
||||||
<Route path="about" element={<About />} />
|
<Route path="about" element={<About />} />
|
||||||
<Route path="profile" element={<Profile />} />
|
<Route path="profile" element={<Profile />} />
|
||||||
</Route>
|
</Route>
|
||||||
|
|
||||||
|
{/* buildercomponents */}
|
||||||
|
|
||||||
|
|
||||||
<Route path="*" element={<Navigate to="/" replace />} />
|
<Route path="*" element={<Navigate to="/" replace />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
</BrowserRouter>
|
</BrowserRouter>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user