From e9326141453344d705d1a77c2da0328d73c71c79 Mon Sep 17 00:00:00 2001 From: Asad Ali Date: Tue, 20 Aug 2024 12:46:31 +0500 Subject: [PATCH] feat: remove CTA --- src/App.jsx | 2 -- src/App.test.jsx | 1 - src/__snapshots__/App.test.jsx.snap | 2 -- src/containers/CTA/CTA.test.jsx | 11 ------- .../CTA/__snapshots__/CTA.test.jsx.snap | 31 ------------------- src/containers/CTA/index.jsx | 29 ----------------- src/containers/CTA/messages.js | 23 -------------- 7 files changed, 99 deletions(-) delete mode 100644 src/containers/CTA/CTA.test.jsx delete mode 100644 src/containers/CTA/__snapshots__/CTA.test.jsx.snap delete mode 100644 src/containers/CTA/index.jsx delete mode 100644 src/containers/CTA/messages.js 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);