Skip to content

Commit

Permalink
refactor: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
asadali145 committed Feb 22, 2024
1 parent 82a3b6e commit 4d619d1
Showing 1 changed file with 13 additions and 22 deletions.
35 changes: 13 additions & 22 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
import { sendTrackEvent } from '@edx/frontend-platform/analytics';
import { ensureConfig } from '@edx/frontend-platform/config';
import { AppContext } from '@edx/frontend-platform/react';
import {
APP_CONFIG_INITIALIZED,
getConfig,
mergeConfig,
subscribe

Check failure on line 12 in src/components/Footer.jsx

View workflow job for this annotation

GitHub Actions / tests

Missing trailing comma
} from "@edx/frontend-platform";

Check failure on line 13 in src/components/Footer.jsx

View workflow job for this annotation

GitHub Actions / tests

Strings must use singlequote

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

ensureConfig([
'LMS_BASE_URL',
Expand Down Expand Up @@ -94,39 +99,25 @@ class SiteFooter extends React.Component {
<div>
<ul className="footer-sub-nav">
{
this.renderLinkIfExists(
getConfig().ABOUT_US_URL, intl.formatMessage(messages['footer.edxLinks.aboutUs'])
)
this.renderLinkIfExists(getConfig().ABOUT_US_URL, intl.formatMessage(messages['footer.edxLinks.aboutUs']))
}
{
this.renderLinkIfExists(
getConfig().TERMS_OF_SERVICE_URL, intl.formatMessage(messages['footer.legalLinks.termsOfService'])
)
this.renderLinkIfExists(getConfig().TERMS_OF_SERVICE_URL, intl.formatMessage(messages['footer.legalLinks.termsOfService']))
}
{
this.renderLinkIfExists(
getConfig().PRIVACY_POLICY_URL, intl.formatMessage(messages['footer.legalLinks.privacyPolicy'])
)
this.renderLinkIfExists(getConfig().PRIVACY_POLICY_URL, intl.formatMessage(messages['footer.legalLinks.privacyPolicy']))
}
{
this.renderLinkIfExists(
getConfig().HONOR_CODE_URL, intl.formatMessage(messages['footer.legalLinks.honorCode'])
)
this.renderLinkIfExists(getConfig().HONOR_CODE_URL, intl.formatMessage(messages['footer.legalLinks.honorCode']))
}
{
this.renderLinkIfExists(
getConfig().CONTACT_URL, intl.formatMessage(messages['footer.connectLinks.contact'])
)
this.renderLinkIfExists(getConfig().CONTACT_URL, intl.formatMessage(messages['footer.connectLinks.contact']))
}
{
this.renderLinkIfExists(
getConfig().ACCESSIBILITY_URL, intl.formatMessage(messages['footer.legalLinks.a11yPolicy'])
)
this.renderLinkIfExists(getConfig().ACCESSIBILITY_URL, intl.formatMessage(messages['footer.legalLinks.a11yPolicy']))
}
{
this.renderLinkIfExists(
getConfig().SUPPORT_CENTER_URL, getConfig().SUPPORT_CENTER_TEXT || intl.formatMessage(messages['footer.connectLinks.help'])
)
this.renderLinkIfExists(getConfig().SUPPORT_CENTER_URL, getConfig().SUPPORT_CENTER_TEXT || intl.formatMessage(messages['footer.connectLinks.help']))
}
</ul>
</div>
Expand Down

0 comments on commit 4d619d1

Please sign in to comment.