File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
components/SignInGate/gateDesigns Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
1010 textSansBold15 ,
1111} from '@guardian/source/foundations' ;
1212import { SvgCross , SvgGuardianLogo } from '@guardian/source/react-components' ;
13+ import { has } from '../../../lib/has-string' ;
1314import { AuthProviderButtons } from '../../AuthProviderButtons/AuthProviderButtons' ;
1415import { useConfig } from '../../ConfigContext' ;
1516import { ExternalLink } from '../../ExternalLink/ExternalLink' ;
@@ -47,7 +48,6 @@ export const SignInGateAuxiaV1 = ({
4748 first_cta_link : firstCtaLink ,
4849 } = JSON . parse ( userTreatment . treatmentContent ) as TreatmentContentDecoded ;
4950
50- const has = ( s ?: string ) => ! ! s && s . trim ( ) !== '' ;
5151 const isDismissible = userTreatment . treatmentType . startsWith (
5252 'DISMISSABLE_SIGN_IN_GATE' ,
5353 ) ;
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {
1515import { SvgCross , SvgGuardianLogo } from '@guardian/source/react-components' ;
1616import { useEffect } from 'react' ;
1717import { getZIndex } from '../../../lib/getZIndex' ;
18+ import { has } from '../../../lib/has-string' ;
1819import { AuthProviderButtons } from '../../AuthProviderButtons/AuthProviderButtons' ;
1920import { useConfig } from '../../ConfigContext' ;
2021import { ExternalLink } from '../../ExternalLink/ExternalLink' ;
@@ -51,7 +52,6 @@ export const SignInGateAuxiaV2 = ({
5152 first_cta_link : firstCtaLink ,
5253 } = JSON . parse ( userTreatment . treatmentContent ) as TreatmentContentDecoded ;
5354
54- const has = ( s ?: string ) => ! ! s && s . trim ( ) !== '' ;
5555 const isDismissible = userTreatment . treatmentType . startsWith (
5656 'DISMISSABLE_SIGN_IN_GATE' ,
5757 ) ;
Original file line number Diff line number Diff line change 1+ export const has = ( s ?: string ) : boolean => ! ! s && s . trim ( ) !== '' ;
You can’t perform that action at this time.
0 commit comments