Skip to content

Commit 489742d

Browse files
committed
feat: add program dashboard directory (#1)
1 parent 14406a8 commit 489742d

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { getAuthenticatedHttpClient } from '@edx/frontend-platform/auth';
2+
import { getConfig } from '@edx/frontend-platform';
3+
4+
export async function getProgramsListData() {
5+
const url = `${getConfig().LMS_BASE_URL}/api/dashboard/v0/programs/`;
6+
const response = await getAuthenticatedHttpClient().get(url);
7+
return response;
8+
}

src/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
import { FooterSlot } from '@edx/frontend-component-footer';
2626

2727
import LearnerDashboardHeader from 'containers/LearnerDashboardHeader';
28-
import { ProgramsList } from 'containers/ProgramDashboard';
28+
import ProgramsList from './containers/ProgramDashboard';
2929

3030
import { configuration } from './config';
3131

0 commit comments

Comments
 (0)