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. - - - Powered by Open edX - - - - ); -}; - -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( - -