(Feat-Fix): New Reporting system, more seeded data, fixed subdepartments and activity inversion, login page changes, etc etc
This commit is contained in:
11
src/App.tsx
11
src/App.tsx
@@ -9,8 +9,11 @@ import { AttendancePage } from './pages/AttendancePage';
|
||||
import { RatesPage } from './pages/RatesPage';
|
||||
import { EmployeeSwapPage } from './pages/EmployeeSwapPage';
|
||||
import { LoginPage } from './pages/LoginPage';
|
||||
import { ReportingPage } from './pages/ReportingPage';
|
||||
import { StandardRatesPage } from './pages/StandardRatesPage';
|
||||
import { AllRatesPage } from './pages/AllRatesPage';
|
||||
|
||||
type PageType = 'dashboard' | 'users' | 'allocation' | 'attendance' | 'rates' | 'swaps';
|
||||
type PageType = 'dashboard' | 'users' | 'allocation' | 'attendance' | 'rates' | 'swaps' | 'reports' | 'standard-rates' | 'all-rates';
|
||||
|
||||
const AppContent: React.FC = () => {
|
||||
const [activePage, setActivePage] = useState<PageType>('dashboard');
|
||||
@@ -30,6 +33,12 @@ const AppContent: React.FC = () => {
|
||||
return <RatesPage />;
|
||||
case 'swaps':
|
||||
return <EmployeeSwapPage />;
|
||||
case 'reports':
|
||||
return <ReportingPage />;
|
||||
case 'standard-rates':
|
||||
return <StandardRatesPage />;
|
||||
case 'all-rates':
|
||||
return <AllRatesPage />;
|
||||
default:
|
||||
return <DashboardPage />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user