We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14406a8 commit 489742dCopy full SHA for 489742d
2 files changed
src/containers/ProgramDashboard/api.ts
@@ -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
@@ -25,7 +25,7 @@ import {
25
import { FooterSlot } from '@edx/frontend-component-footer';
26
27
import LearnerDashboardHeader from 'containers/LearnerDashboardHeader';
28
-import { ProgramsList } from 'containers/ProgramDashboard';
+import ProgramsList from './containers/ProgramDashboard';
29
30
import { configuration } from './config';
31
0 commit comments