From 79822516400e71b6c0fe8331be3e4d8e10bc9845 Mon Sep 17 00:00:00 2001 From: Ayrton Lima Date: Tue, 8 Feb 2022 22:38:06 -0300 Subject: [PATCH] fix: change logo anchor tag to link to the LMS --- README.rst | 1 + src/components/Footer.jsx | 3 ++- src/components/Footer.test.jsx | 4 ++++ src/components/__snapshots__/Footer.test.jsx.snap | 6 +++--- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 1095de79..037743bd 100644 --- a/README.rst +++ b/README.rst @@ -21,6 +21,7 @@ Environment Variables This component requires that the following environment variable be set by the consuming micro-frontend. +* ``LMS_BASE_URL`` - The URL of the LMS of your Open edX instance. * ``LOGO_TRADEMARK_URL`` - This is a URL to a logo for use in the footer. This is a different environment variable than ``LOGO_URL`` (used in frontend-component-header) to accommodate sites that would like to have additional trademark information on a logo in the footer, such as a (tm) or (r) symbol. ************ diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index ba7ba7b2..d8234c73 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -9,6 +9,7 @@ import messages from './Footer.messages'; import LanguageSelector from './LanguageSelector'; ensureConfig([ + 'LMS_BASE_URL', 'LOGO_TRADEMARK_URL', ], 'Footer component'); @@ -58,7 +59,7 @@ class SiteFooter extends React.Component {
', () => { authenticatedUser: null, config: { LOGO_TRADEMARK_URL: process.env.LOGO_TRADEMARK_URL, + LMS_BASE_URL: process.env.LMS_BASE_URL, }, }} > @@ -36,6 +37,7 @@ describe('