Update App.js

This commit is contained in:
string 2025-06-13 10:29:22 +05:30
parent d70fda6d3a
commit a2ca60ed8f

View File

@ -65,22 +65,22 @@ const App = () => {
draggable
pauseOnHover
/>
<Routes>
<Route path="/" element={<Login />} />
{/* Main dashboard route */}
<Route path="/dashboard" element={<Dashboard />}>
<Route index element={<HomePage />} />
{/* Setup section with all maintenance routes */}
<Route path="setup" element={<Setup />}>
<Route index element={<div>Select a setup option from the menu</div>} />
<Route path="user-maintenance" element={<UserMaintenance />} />
<Route path="user-group-maintenance" element={<UserGroupMaintenance />} />
<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="system-parameters" element={<SystemParameters />} />
<Route path="access-type" element={<AccessType />} />
@ -90,20 +90,23 @@ const App = () => {
{/* Additional components */}
<Route path="code-extension" element={<CodeExtension />} />
<Route path="dynamic-table" element={<DynamicTable />} />
</Route>
<Route path="dashboard-runner-all" element={<DashboardRunnerAll/>}/>
<Route path="dashboard-new-all" element={<DashboardNewAll/>}/>
<Route path="dashboard-new-add" element={<DashboardNewAdd/>}/>
<Route path="dashboard-new-edit/:id" element={<DashboardNewEdit/>}/>
<Route path="edit-new-dash/:id" element={<EditNewDash/>}/>
<Route path="dashrunner/:id" element={ <DashboardRunner/>}/>
<Route path="dashboard-runner-all" element={<DashboardRunnerAll />} />
<Route path="dashboard-new-all" element={<DashboardNewAll />} />
<Route path="dashboard-new-add" element={<DashboardNewAdd />} />
<Route path="dashboard-new-edit/:id" element={<DashboardNewEdit />} />
<Route path="edit-new-dash/:id" element={<EditNewDash />} />
<Route path="dashrunner/:id" element={<DashboardRunner />} />
<Route path="reports" element={<Report />} />
<Route path="about" element={<About />} />
<Route path="profile" element={<Profile />} />
<Route path="about" element={<About />} />
<Route path="profile" element={<Profile />} />
</Route>
{/* buildercomponents */}
<Route path="*" element={<Navigate to="/" replace />} />
</Routes>
</BrowserRouter>