@@ -5,10 +5,15 @@ import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
5
5
import { sendTrackEvent } from '@edx/frontend-platform/analytics' ;
6
6
import { ensureConfig } from '@edx/frontend-platform/config' ;
7
7
import { AppContext } from '@edx/frontend-platform/react' ;
8
+ import {
9
+ APP_CONFIG_INITIALIZED ,
10
+ getConfig ,
11
+ mergeConfig ,
12
+ subscribe
13
+ } from "@edx/frontend-platform" ;
8
14
9
15
import messages from './Footer.messages' ;
10
16
import LanguageSelector from './LanguageSelector' ;
11
- import { APP_CONFIG_INITIALIZED , mergeConfig , subscribe , getConfig } from "@edx/frontend-platform" ;
12
17
13
18
ensureConfig ( [
14
19
'LMS_BASE_URL' ,
@@ -94,39 +99,25 @@ class SiteFooter extends React.Component {
94
99
< div >
95
100
< ul className = "footer-sub-nav" >
96
101
{
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' ] ) )
100
103
}
101
104
{
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' ] ) )
105
106
}
106
107
{
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' ] ) )
110
109
}
111
110
{
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' ] ) )
115
112
}
116
113
{
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' ] ) )
120
115
}
121
116
{
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' ] ) )
125
118
}
126
119
{
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' ] ) )
130
121
}
131
122
</ ul >
132
123
</ div >
0 commit comments