diff --git a/src/App.jsx b/src/App.jsx index 8f27b42e..e8d513c6 100755 --- a/src/App.jsx +++ b/src/App.jsx @@ -9,7 +9,6 @@ import { LearningHeader as Header } from '@edx/frontend-component-header'; import { selectors } from 'data/redux'; import DemoWarning from 'containers/DemoWarning'; -import CTA from 'containers/CTA'; import NotificationsBanner from 'containers/NotificationsBanner'; import ListView from 'containers/ListView'; @@ -27,7 +26,6 @@ export const App = ({ courseMetadata, isEnabled }) => ( data-testid="header" /> {!isEnabled && } -
diff --git a/src/App.test.jsx b/src/App.test.jsx index b667c280..5b1cd384 100644 --- a/src/App.test.jsx +++ b/src/App.test.jsx @@ -18,7 +18,6 @@ jest.mock('@edx/frontend-component-header', () => ({ jest.mock('@edx/frontend-component-footer', () => ({ FooterSlot: 'Footer' })); jest.mock('containers/DemoWarning', () => 'DemoWarning'); -jest.mock('containers/CTA', () => 'CTA'); jest.mock('containers/ListView', () => 'ListView'); jest.mock('components/Head', () => 'Head'); diff --git a/src/__snapshots__/App.test.jsx.snap b/src/__snapshots__/App.test.jsx.snap index ed7a4934..ee7d6a61 100644 --- a/src/__snapshots__/App.test.jsx.snap +++ b/src/__snapshots__/App.test.jsx.snap @@ -11,7 +11,6 @@ exports[`App router component snapshot: disabled (show demo warning) 1`] = ` data-testid="header" /> -
-
{ - test('snapshots', () => { - const el = shallow(); - expect(el.snapshot).toMatchSnapshot(); - }); -}); diff --git a/src/containers/CTA/__snapshots__/CTA.test.jsx.snap b/src/containers/CTA/__snapshots__/CTA.test.jsx.snap deleted file mode 100644 index 019f9cfb..00000000 --- a/src/containers/CTA/__snapshots__/CTA.test.jsx.snap +++ /dev/null @@ -1,31 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`CTA component snapshots 1`] = ` - - - - - - - - - -`; diff --git a/src/containers/CTA/index.jsx b/src/containers/CTA/index.jsx deleted file mode 100644 index 6e3fd03c..00000000 --- a/src/containers/CTA/index.jsx +++ /dev/null @@ -1,29 +0,0 @@ -import React from 'react'; - -import { FormattedMessage } from '@edx/frontend-platform/i18n'; -import { PageBanner, Hyperlink } from '@openedx/paragon'; - -import messages from './messages'; - -/** - * - */ -export const CTA = () => ( - - - - - - - - - -); - -export default CTA; diff --git a/src/containers/CTA/messages.js b/src/containers/CTA/messages.js deleted file mode 100644 index 4607fbfc..00000000 --- a/src/containers/CTA/messages.js +++ /dev/null @@ -1,23 +0,0 @@ -/* eslint-disable quotes */ -import { defineMessages } from '@edx/frontend-platform/i18n'; -import { StrictDict } from 'utils'; - -const messages = defineMessages({ - ctaFeedbackMessage: { - id: 'ora-grading.CTA.feedbackMessage', - defaultMessage: 'Thanks for using the new ORA staff grading experience. ', - description: 'Thank user for using ora and ask for feed back', - }, - ctaLinkMessage: { - id: 'ora-grading.CTA.linkMessage', - defaultMessage: 'Provide some feedback', - description: 'placeholder for the feedback anchor link', - }, - ctaLetUsKnowMessage: { - id: 'ora-grading.CTA.letUsKnowMessage', - defaultMessage: ' and let us know what you think!', - description: 'inform user to provide feedback', - }, -}); - -export default StrictDict(messages); diff --git a/src/containers/NotificationsBanner/index.jsx b/src/containers/NotificationsBanner/index.jsx index 4c334e78..46be5a20 100644 --- a/src/containers/NotificationsBanner/index.jsx +++ b/src/containers/NotificationsBanner/index.jsx @@ -1,3 +1,4 @@ +import _ from 'lodash'; import React from 'react'; import { getConfig } from '@edx/frontend-platform'; @@ -6,7 +7,8 @@ import { PageBanner, Hyperlink } from '@openedx/paragon'; import messages from './messages'; -export const NotificationsBanner = () => ( +// eslint-disable-next-line no-confusing-arrow +export const NotificationsBanner = () => _.isEmpty(getConfig().ACCOUNT_SETTINGS_URL) ? null : (