Skip to content

Commit 2164115

Browse files
feat: added footer as per jason comment in PR review
1 parent 104f90d commit 2164115

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/containers/ProgramDashboard/ProgramsList/ProgramListCard.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ describe('ProgramListCard', () => {
123123
width: 500,
124124
size: 'xSmall',
125125
}])('tests window size', ({ width, size }) => {
126-
global.innerWidth = width;
126+
innerWidth = width;
127127
const { getByAltText } = renderComponent();
128128
const imageCap = getByAltText('program card image for test-title');
129129
expect(imageCap).toHaveAttribute('src', `banner-${size}.jpg`);

src/index.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import 'core-js/stable';
33
import 'regenerator-runtime/runtime';
44

5-
import React, { StrictMode } from 'react';
5+
import { StrictMode } from 'react';
66
import { createRoot } from 'react-dom/client';
77
import {
88
Navigate, Route, Routes,
@@ -21,6 +21,7 @@ import {
2121
getConfig,
2222
mergeConfig,
2323
} from '@edx/frontend-platform';
24+
import { FooterSlot } from '@edx/frontend-component-footer';
2425

2526
import LearnerDashboardHeader from 'containers/LearnerDashboardHeader';
2627
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
@@ -56,6 +57,7 @@ subscribe(APP_READY, () => {
5657
)}
5758
<Route path="*" element={<Navigate to="/" replace />} />
5859
</Routes>
60+
<FooterSlot/>
5961
</QueryClientProvider>
6062
</ContextProviders>
6163
</AppProvider>

0 commit comments

Comments
 (0)