Skip to content

Commit 4d619d1

Browse files
committed
refactor: lint
1 parent 82a3b6e commit 4d619d1

File tree

1 file changed

+13
-22
lines changed

1 file changed

+13
-22
lines changed

src/components/Footer.jsx

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
55
import { sendTrackEvent } from '@edx/frontend-platform/analytics';
66
import { ensureConfig } from '@edx/frontend-platform/config';
77
import { AppContext } from '@edx/frontend-platform/react';
8+
import {
9+
APP_CONFIG_INITIALIZED,
10+
getConfig,
11+
mergeConfig,
12+
subscribe
13+
} from "@edx/frontend-platform";
814

915
import messages from './Footer.messages';
1016
import LanguageSelector from './LanguageSelector';
11-
import {APP_CONFIG_INITIALIZED, mergeConfig, subscribe, getConfig} from "@edx/frontend-platform";
1217

1318
ensureConfig([
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

Comments
 (0)