feat(roles): add roles management page with add, edit and delete functionality

This commit is contained in:
ghazall-ag
2025-10-31 21:23:36 +03:30
parent 5079a5bc56
commit 453cc81c70
4 changed files with 509 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ import Dashboard from './pages/Dashboard';
import Transactions from './pages/Transactions';
import Settings from './pages/Settings';
import ForgotPassword from './pages/ForgotPassword';
import Roles from './pages/Roles';
// Protected Route Component
const ProtectedRoute = ({ children }) => {
@@ -91,6 +92,16 @@ const AppRoutes = () => {
</ProtectedRoute>
}
/>
<Route
path="/roles"
element={
<ProtectedRoute>
<Layout>
<Roles />
</Layout>
</ProtectedRoute>
}
/>
<Route path="*" element={<Navigate to="/" />} />
</Routes>
);