Skip to content

Commit 3bdaa30

Browse files
fix: add authloader (#206)
1 parent 411ee13 commit 3bdaa30

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/routes.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import SpecialExamsPage from '@src/specialExams/SpecialExamsPage';
1212
import PageNotFound from '@src/components/PageNotFound';
1313
import { useWidgetProps } from './slots/SlotUtils';
1414
import { instructorDashboardRole } from './constants';
15+
import { authenticatedLoader } from '@openedx/frontend-base';
1516

1617
interface InstructorRouteProps {
1718
tabId: string,
@@ -51,6 +52,7 @@ const routes = [
5152
{
5253
id: 'org.openedx.frontend.route.instructorDashboard.main',
5354
path: 'instructor-dashboard/:courseId',
55+
loader: authenticatedLoader,
5456
handle: {
5557
roles: [instructorDashboardRole]
5658
},

0 commit comments

Comments
 (0)