@@ -5,10 +5,15 @@ import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
55import { sendTrackEvent } from '@edx/frontend-platform/analytics' ;
66import { ensureConfig } from '@edx/frontend-platform/config' ;
77import { AppContext } from '@edx/frontend-platform/react' ;
8+ import {
9+ APP_CONFIG_INITIALIZED ,
10+ getConfig ,
11+ mergeConfig ,
12+ subscribe
13+ } from "@edx/frontend-platform" ;
814
915import messages from './Footer.messages' ;
1016import LanguageSelector from './LanguageSelector' ;
11- import { APP_CONFIG_INITIALIZED , mergeConfig , subscribe , getConfig } from "@edx/frontend-platform" ;
1217
1318ensureConfig ( [
1419 'LMS_BASE_URL' ,
@@ -94,39 +99,25 @@ class SiteFooter extends React.Component {
9499 < div >
95100 < ul className = "footer-sub-nav" >
96101 {
97- this . renderLinkIfExists (
98- getConfig ( ) . ABOUT_US_URL , intl . formatMessage ( messages [ 'footer.edxLinks.aboutUs' ] )
99- )
102+ this . renderLinkIfExists ( getConfig ( ) . ABOUT_US_URL , intl . formatMessage ( messages [ 'footer.edxLinks.aboutUs' ] ) )
100103 }
101104 {
102- this . renderLinkIfExists (
103- getConfig ( ) . TERMS_OF_SERVICE_URL , intl . formatMessage ( messages [ 'footer.legalLinks.termsOfService' ] )
104- )
105+ this . renderLinkIfExists ( getConfig ( ) . TERMS_OF_SERVICE_URL , intl . formatMessage ( messages [ 'footer.legalLinks.termsOfService' ] ) )
105106 }
106107 {
107- this . renderLinkIfExists (
108- getConfig ( ) . PRIVACY_POLICY_URL , intl . formatMessage ( messages [ 'footer.legalLinks.privacyPolicy' ] )
109- )
108+ this . renderLinkIfExists ( getConfig ( ) . PRIVACY_POLICY_URL , intl . formatMessage ( messages [ 'footer.legalLinks.privacyPolicy' ] ) )
110109 }
111110 {
112- this . renderLinkIfExists (
113- getConfig ( ) . HONOR_CODE_URL , intl . formatMessage ( messages [ 'footer.legalLinks.honorCode' ] )
114- )
111+ this . renderLinkIfExists ( getConfig ( ) . HONOR_CODE_URL , intl . formatMessage ( messages [ 'footer.legalLinks.honorCode' ] ) )
115112 }
116113 {
117- this . renderLinkIfExists (
118- getConfig ( ) . CONTACT_URL , intl . formatMessage ( messages [ 'footer.connectLinks.contact' ] )
119- )
114+ this . renderLinkIfExists ( getConfig ( ) . CONTACT_URL , intl . formatMessage ( messages [ 'footer.connectLinks.contact' ] ) )
120115 }
121116 {
122- this . renderLinkIfExists (
123- getConfig ( ) . ACCESSIBILITY_URL , intl . formatMessage ( messages [ 'footer.legalLinks.a11yPolicy' ] )
124- )
117+ this . renderLinkIfExists ( getConfig ( ) . ACCESSIBILITY_URL , intl . formatMessage ( messages [ 'footer.legalLinks.a11yPolicy' ] ) )
125118 }
126119 {
127- this . renderLinkIfExists (
128- getConfig ( ) . SUPPORT_CENTER_URL , getConfig ( ) . SUPPORT_CENTER_TEXT || intl . formatMessage ( messages [ 'footer.connectLinks.help' ] )
129- )
120+ this . renderLinkIfExists ( getConfig ( ) . SUPPORT_CENTER_URL , getConfig ( ) . SUPPORT_CENTER_TEXT || intl . formatMessage ( messages [ 'footer.connectLinks.help' ] ) )
130121 }
131122 </ ul >
132123 </ div >
0 commit comments