diff --git a/src/components/programs-list/ProgramListPage.jsx b/src/components/programs-list/ProgramListPage.jsx index 15bbb123..9202647e 100644 --- a/src/components/programs-list/ProgramListPage.jsx +++ b/src/components/programs-list/ProgramListPage.jsx @@ -3,7 +3,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { sendPageEvent } from '@edx/frontend-platform/analytics'; -import { StatusAlert } from '@edx/paragon'; +import { Alert } from '@edx/paragon'; import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Layout } from '../layout'; @@ -78,20 +78,19 @@ export class ProgramListPage extends Component { return enrolledProgramsList; }; + errorIcon = () => ; + renderError = ({ message }) => ( - -
- -
-
{message}
- - )} + + show + > +
+ {message} +
+
); render() { diff --git a/src/components/programs-list/tests/ProgramListPage.test.jsx b/src/components/programs-list/tests/ProgramListPage.test.jsx index dcf3cd1a..2587ed5f 100644 --- a/src/components/programs-list/tests/ProgramListPage.test.jsx +++ b/src/components/programs-list/tests/ProgramListPage.test.jsx @@ -1,7 +1,7 @@ import React from 'react'; import renderer from 'react-test-renderer'; import { shallow } from 'enzyme'; -import { StatusAlert } from '@edx/paragon'; +import { Alert } from '@edx/paragon'; import { IntlProvider } from 'react-intl'; import { getAuthenticatedUser } from '@edx/frontend-platform/auth'; import { ProgramListPage } from '../ProgramListPage'; @@ -114,6 +114,6 @@ describe('ProgramListPage', () => { wrapper.setProps({ enrolledPrograms: data }); expect(wrapper.find('.table-responsive').exists()).toBeFalsy(); - expect(wrapper.find(StatusAlert).exists()).toBeTruthy(); + expect(wrapper.find(Alert).exists()).toBeTruthy(); }); }); diff --git a/src/components/programs-list/tests/__snapshots__/ProgramListPage.test.jsx.snap b/src/components/programs-list/tests/__snapshots__/ProgramListPage.test.jsx.snap index 00db3967..1118a687 100644 --- a/src/components/programs-list/tests/__snapshots__/ProgramListPage.test.jsx.snap +++ b/src/components/programs-list/tests/__snapshots__/ProgramListPage.test.jsx.snap @@ -420,36 +420,39 @@ exports[`ProgramListPage renders fetching program error page when there are issu className="container my-4" >