diff --git a/src/footer/Footer.jsx b/src/footer/Footer.jsx
deleted file mode 100644
index 1b6e083a8..000000000
--- a/src/footer/Footer.jsx
+++ /dev/null
@@ -1,166 +0,0 @@
-import React, { useState } from 'react';
-import PropTypes from 'prop-types';
-import _ from 'lodash-es';
-import { intlShape, injectIntl, FormattedMessage } from '@edx/frontend-platform/i18n';
-import {
- ActionRow,
- Button,
- Hyperlink,
- Image,
- TransitionReplace,
-} from '@edx/paragon';
-import { ExpandLess, ExpandMore, Help } from '@edx/paragon/icons';
-import messages from './messages';
-
-const Footer = ({
- marketingBaseUrl,
- termsOfServiceUrl,
- privacyPolicyUrl,
- supportEmail,
- platformName,
- lmsBaseUrl,
- studioBaseUrl,
- showAccessibilityPage,
- // injected
- intl,
-}) => {
- const [isOpen, setIsOpen] = useState(false);
-
- return (
- <>
-
-
-
-
-
-
- {isOpen ? (
-
-
-
- {platformName === 'edX' ? (
-
- ) : (
-
- )}
-
-
- {!_.isEmpty(supportEmail) && (
-
- )}
-
-
- ) : null}
-
-
- © {new Date().getFullYear()} {platformName}
-
- {!_.isEmpty(termsOfServiceUrl) && (
-
- {intl.formatMessage(messages.termsOfServiceLinkLabel)}
-
- )}{!_.isEmpty(privacyPolicyUrl) && (
-
- {intl.formatMessage(messages.privacyPolicyLinkLabel)}
-
- )}
- {showAccessibilityPage && (
-
- {intl.formatMessage(messages.accessibilityRequestLinkLabel)}
-
- )}
- LMS
-
-
- {/*
- Site operators: Please do not remove this paragraph! this attributes back to edX and
- makes your acknowledgement of edX's trademarks clear.
- Translators: 'edX' and 'Open edX' are trademarks of 'edX Inc.'. Please do not translate
- any of these trademarks and company names.
- */}
-
- edX Inc.
-
-
-
-
-
- >
- );
-};
-
-Footer.defaultProps = {
- marketingBaseUrl: null,
- termsOfServiceUrl: null,
- privacyPolicyUrl: null,
- spanishPrivacyPolicy: null,
- supportEmail: null,
-};
-
-Footer.propTypes = {
- marketingBaseUrl: PropTypes.string,
- termsOfServiceUrl: PropTypes.string,
- privacyPolicyUrl: PropTypes.string,
- spanishPrivacyPolicy: PropTypes.string,
- supportEmail: PropTypes.string,
- platformName: PropTypes.string.isRequired,
- lmsBaseUrl: PropTypes.string.isRequired,
- studioBaseUrl: PropTypes.string.isRequired,
- showAccessibilityPage: PropTypes.bool.isRequired,
- // injected
- intl: intlShape.isRequired,
-};
-
-export default injectIntl(Footer);
diff --git a/src/footer/Footer.test.jsx b/src/footer/Footer.test.jsx
deleted file mode 100644
index ae8c46336..000000000
--- a/src/footer/Footer.test.jsx
+++ /dev/null
@@ -1,120 +0,0 @@
-import React from 'react';
-import { fireEvent, render, screen } from '@testing-library/react';
-import '@testing-library/jest-dom/extend-expect';
-import { IntlProvider } from '@edx/frontend-platform/i18n';
-import { formatMessage } from '../testUtils';
-import Footer from './Footer';
-import messages from './messages';
-
-const renderComponent = (
- termsOfServiceUrl,
- privacyPolicyUrl,
- supportEmail,
- showAccessibilityPage,
- platformName,
-) => {
- render(
-
-
- ,
- );
-};
-
-jest.unmock('@edx/paragon');
-
-describe('Footer', () => {
- describe('help section default view', () => {
- it('help button should read Looking for help with Studio?', () => {
- renderComponent();
- expect(screen.getByText(messages.openHelpButtonLabel.defaultMessage))
- .toBeVisible();
- });
- it('help button link row should not be visible', () => {
- renderComponent();
- expect(screen.queryByTestId('helpButtonRow')).toBeNull();
- });
- });
- describe('help section expanded view', () => {
- it('help button should read Hide Studio help', () => {
- renderComponent();
- const helpToggleButton = screen.getByText(messages.openHelpButtonLabel.defaultMessage);
- fireEvent.click(helpToggleButton);
- expect(screen.getByText(messages.closeHelpButtonLabel.defaultMessage))
- .toBeVisible();
- });
- it('help button link row should be visible', () => {
- renderComponent();
- const helpToggleButton = screen.getByText(messages.openHelpButtonLabel.defaultMessage);
- fireEvent.click(helpToggleButton);
- expect(screen.getByTestId('helpButtonRow')).toBeVisible();
- });
- describe('portal button', () => {
- it('should equal edX partner portal and edX equals platform name', () => {
- renderComponent(null, null, null, false, 'edX');
- const helpToggleButton = screen.getByText(messages.openHelpButtonLabel.defaultMessage);
- fireEvent.click(helpToggleButton);
- expect(screen.getByTestId('edXPortalButton')).toBeVisible();
- expect(screen.queryByTestId('openEdXPortalButton')).toBeNull();
- });
- it('should equal Open edX portal and edX does not equal platform name', () => {
- renderComponent();
- const helpToggleButton = screen.getByText(messages.openHelpButtonLabel.defaultMessage);
- fireEvent.click(helpToggleButton);
- expect(screen.queryByTestId('edXPortalButton')).toBeNull();
- expect(screen.getByTestId('openEdXPortalButton')).toBeVisible();
- });
- });
- it('should not show contact us button', () => {
- renderComponent();
- const helpToggleButton = screen.getByText(messages.openHelpButtonLabel.defaultMessage);
- fireEvent.click(helpToggleButton);
- expect(screen.queryByTestId('contactUsButton')).toBeNull();
- });
- it('should show contact us button', () => {
- renderComponent(null, null, 'support@email.com', false, null);
- const helpToggleButton = screen.getByText(messages.openHelpButtonLabel.defaultMessage);
- fireEvent.click(helpToggleButton);
- expect(screen.getByTestId('contactUsButton')).toBeVisible();
- });
- });
- describe('policy link row', () => {
- it('should only show LMS link', () => {
- renderComponent();
- expect(screen.getByText('LMS')).toBeVisible();
- expect(screen.queryByTestId('termsOfService')).toBeNull();
- expect(screen.queryByTestId('privacyPolicy')).toBeNull();
- expect(screen.queryByTestId('accessibilityRequest')).toBeNull();
- });
- it('should show terms of service link', () => {
- renderComponent('termsofserviceurl', null, null, false, null);
- expect(screen.getByText('LMS')).toBeVisible();
- expect(screen.queryByTestId('termsOfService')).toBeVisible();
- expect(screen.queryByTestId('privacyPolicy')).toBeNull();
- expect(screen.queryByTestId('accessibilityRequest')).toBeNull();
- });
- it('should show privacy policy link', () => {
- renderComponent(null, 'privacypolicyurl', null, false, null);
- expect(screen.getByText('LMS')).toBeVisible();
- expect(screen.queryByTestId('termsOfService')).toBeNull();
- expect(screen.queryByTestId('privacyPolicy')).toBeVisible();
- expect(screen.queryByTestId('accessibilityRequest')).toBeNull();
- });
- it('should show accessibilty request link', () => {
- renderComponent(null, null, null, true, null);
- expect(screen.getByText('LMS')).toBeVisible();
- expect(screen.queryByTestId('termsOfService')).toBeNull();
- expect(screen.queryByTestId('privacyPolicy')).toBeNull();
- expect(screen.queryByTestId('accessibilityRequest')).toBeVisible();
- });
- });
-});
diff --git a/src/footer/index.jsx b/src/footer/index.jsx
deleted file mode 100644
index ced11e525..000000000
--- a/src/footer/index.jsx
+++ /dev/null
@@ -1,3 +0,0 @@
-import Footer from './Footer';
-
-export default Footer;
diff --git a/src/footer/messages.js b/src/footer/messages.js
deleted file mode 100644
index 10078c85a..000000000
--- a/src/footer/messages.js
+++ /dev/null
@@ -1,66 +0,0 @@
-import { defineMessages } from '@edx/frontend-platform/i18n';
-
-const messages = defineMessages({
- openHelpButtonLabel: {
- id: 'authoring.footer.help.openHelp.button.label',
- defaultMessage: 'Looking for help with Studio?',
- description: 'Label for button that opens the collapsed section with help buttons',
- },
- closeHelpButtonLabel: {
- id: 'authoring.footer.help.closeHelp.button.label',
- defaultMessage: 'Hide Studio help',
- description: 'Label for button that closes the collapsed section with help buttons',
- },
- edxDocumentationButtonLabel: {
- id: 'authoring.footer.help.edxDocumentation.button.label',
- defaultMessage: 'edX documentation',
- description: 'Label for button that links to the edX documentation site',
- },
- parnterPortalButtonLabel: {
- id: 'authoring.footer.help.parnterPortal.button.label',
- defaultMessage: 'edX partner portal',
- description: 'Label for button that links to the edX partner portal',
- },
- openEdxPortalButtonLabel: {
- id: 'authoring.footer.help.openEdxPortal.button.label',
- defaultMessage: 'Open edX portal',
- description: 'Label for button that links to the Open edX portal',
- },
- edx101ButtonLabel: {
- id: 'authoring.footer.help.edx101.button.label',
- defaultMessage: 'Enroll in edX 101',
- description: 'Label for button that links to the edX 101 course',
- },
- studioXButtonLabel: {
- id: 'authoring.footer.help.studioX.button.label',
- defaultMessage: 'Enroll in StudioX',
- description: 'Label for button that links to the edX StudioX course',
- },
- contactUsButtonLabel: {
- id: 'authoring.footer.help.contactUs.button.label',
- defaultMessage: 'Contact us',
- description: 'Label for button that links to the email for partner support',
- },
- termsOfServiceLinkLabel: {
- id: 'authoring.footer.termsOfService.link.label',
- defaultMessage: 'Terms of Service',
- description: 'Label for button that links to the terms of service page',
- },
- privacyPolicyLinkLabel: {
- id: 'authoring.footer.privacyPolicy.link.label',
- defaultMessage: 'Privacy Policy',
- description: 'Label for button that links to the privacy policy page',
- },
- accessibilityRequestLinkLabel: {
- id: 'authoring.footer.accessibilityRequest.link.label',
- defaultMessage: 'Accessibility Accomodation Request',
- description: 'Label for button that links to the accessibility accomodation requests page',
- },
- trademarkMessage: {
- id: 'authoring.footer.trademark.message',
- defaultMessage: 'edX and Open edX, and the edX and Open edX logos are registered trademarks of',
- description: 'Message about the use of logos and names edX and Open edX',
- },
-});
-
-export default messages;
diff --git a/src/index.jsx b/src/index.jsx
index 27bb984d9..dbb5ea439 100644
--- a/src/index.jsx
+++ b/src/index.jsx
@@ -4,7 +4,6 @@ import EditorPage from './editors/EditorPage';
import VideoSelectorPage from './editors/VideoSelectorPage';
import DraggableList, { SortableItem } from './editors/sharedComponents/DraggableList';
import ErrorAlert from './editors/sharedComponents/ErrorAlerts/ErrorAlert';
-import Footer from './footer';
import { TinyMceWidget } from './editors/sharedComponents/TinyMceWidget';
import { prepareEditorRef } from './editors/sharedComponents/TinyMceWidget/hooks';
import TypeaheadDropdown from './editors/sharedComponents/TypeaheadDropdown';
@@ -16,7 +15,6 @@ export {
DraggableList,
SortableItem,
ErrorAlert,
- Footer,
TinyMceWidget,
prepareEditorRef,
TypeaheadDropdown,