1
1
import React , { useContext , useState } from 'react' ;
2
- import _ from 'lodash' ;
2
+ import isEmpty from 'lodash/isEmpty ' ;
3
3
import { useIntl , FormattedMessage } from '@edx/frontend-platform/i18n' ;
4
4
import { ensureConfig } from '@edx/frontend-platform' ;
5
5
import { AppContext } from '@edx/frontend-platform/react' ;
@@ -88,7 +88,7 @@ const StudioFooter = ({
88
88
>
89
89
< FormattedMessage { ...messages . studioXButtonLabel } />
90
90
</ Button >
91
- { ! _ . isEmpty ( config . SUPPORT_EMAIL ) && (
91
+ { ! isEmpty ( config . SUPPORT_EMAIL ) && (
92
92
< Button
93
93
as = "a"
94
94
href = { `mailto:${ config . SUPPORT_EMAIL } ` }
@@ -105,11 +105,11 @@ const StudioFooter = ({
105
105
< ActionRow className = "pt-3 m-0 x-small" >
106
106
© { new Date ( ) . getFullYear ( ) } < Hyperlink destination = { config . MARKETING_SITE_BASE_URL } target = "_blank" className = "ml-2" > { config . SITE_NAME } </ Hyperlink >
107
107
< ActionRow . Spacer />
108
- { ! _ . isEmpty ( config . TERMS_OF_SERVICE_URL ) && (
108
+ { ! isEmpty ( config . TERMS_OF_SERVICE_URL ) && (
109
109
< Hyperlink destination = { config . TERMS_OF_SERVICE_URL } data-testid = "termsOfService" >
110
110
{ intl . formatMessage ( messages . termsOfServiceLinkLabel ) }
111
111
</ Hyperlink >
112
- ) } { ! _ . isEmpty ( config . PRIVACY_POLICY_URL ) && (
112
+ ) } { ! isEmpty ( config . PRIVACY_POLICY_URL ) && (
113
113
< Hyperlink destination = { config . PRIVACY_POLICY_URL } data-testid = "privacyPolicy" >
114
114
{ intl . formatMessage ( messages . privacyPolicyLinkLabel ) }
115
115
</ Hyperlink >
0 commit comments