mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-11-30 22:45:46 +01:00
set template shift struc
This commit is contained in:
@@ -9,6 +9,8 @@ import Login from './pages/Auth/Login';
|
||||
import Dashboard from './pages/Dashboard/Dashboard';
|
||||
import ShiftPlanList from './pages/ShiftPlans/ShiftPlanList';
|
||||
import ShiftPlanCreate from './pages/ShiftPlans/ShiftPlanCreate';
|
||||
import ShiftPlanEdit from './pages/ShiftPlans/ShiftPlanEdit';
|
||||
import ShiftPlanView from './pages/ShiftPlans/ShiftPlanView';
|
||||
import EmployeeManagement from './pages/Employees/EmployeeManagement';
|
||||
import Settings from './pages/Settings/Settings';
|
||||
import Help from './pages/Help/Help';
|
||||
@@ -93,6 +95,16 @@ const AppContent: React.FC = () => {
|
||||
<ShiftPlanCreate />
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/shift-plans/:id/edit" element={
|
||||
<ProtectedRoute roles={['admin', 'instandhalter']}>
|
||||
<ShiftPlanEdit />
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/shift-plans/:id" element={
|
||||
<ProtectedRoute>
|
||||
<ShiftPlanView />
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/employees" element={
|
||||
<ProtectedRoute roles={['admin', 'instandhalter']}>
|
||||
<EmployeeManagement />
|
||||
|
||||
Reference in New Issue
Block a user