feat: keep manage venue as separate column under main menu in admin panel
This commit is contained in:
@@ -25,6 +25,7 @@ import { StudentDashboard } from './components/dashboard/StudentDashboard';
|
||||
import { StudentRegistrationsView } from './components/dashboard/StudentRegistrationsView';
|
||||
import { ManageNoticesView } from './components/dashboard/ManageNoticesView';
|
||||
import { ManageStudentsView } from './components/dashboard/ManageStudentsView';
|
||||
import { VenueManagement } from './components/dashboard/VenueManagement';
|
||||
|
||||
|
||||
const AppContent: React.FC = () => {
|
||||
@@ -156,6 +157,8 @@ const AppContent: React.FC = () => {
|
||||
return <EventHistory />;
|
||||
case 'classes':
|
||||
return user?.role === 'ADMIN' ? <ClassManagement /> : isDashboard;
|
||||
case 'manage-venues':
|
||||
return user?.role === 'ADMIN' ? <VenueManagement /> : isDashboard;
|
||||
case 'automation':
|
||||
return (user?.role === 'ADMIN' || user?.role === 'PRINCIPAL' || user?.role === 'HOD') ? <AutomationView /> : isDashboard;
|
||||
case 'import-excel':
|
||||
|
||||
Reference in New Issue
Block a user