File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
dotcom-rendering/src/components/SignInGate/gateDesigns Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,16 @@ export const SignInGateAuxia = ({
50
50
return input !== '' ;
51
51
} ;
52
52
53
+ /*
54
+ Whether the gate is dismissible is carried by `secondCtaName` which if it's truthy
55
+ makes the gate dismissible and otherwise is non dismissible.
56
+ */
57
+
58
+ const isDismissible = ! ! secondCtaName ;
59
+ const dismissStatusLabel = isDismissible
60
+ ? 'dismissible'
61
+ : 'non-dismissible' ;
62
+
53
63
return (
54
64
< div css = { signInGateContainer } data-testid = "sign-in-gate-main" >
55
65
< style > { hideElementsCss } </ style >
@@ -68,7 +78,7 @@ export const SignInGateAuxia = ({
68
78
onClick = { async ( ) => {
69
79
trackLink (
70
80
ophanComponentId ,
71
- ' register-link' ,
81
+ ` register-link- ${ dismissStatusLabel } ` ,
72
82
renderingTarget ,
73
83
abTest ,
74
84
) ;
@@ -80,7 +90,7 @@ export const SignInGateAuxia = ({
80
90
>
81
91
{ firstCtaName }
82
92
</ LinkButton >
83
- { ! ! secondCtaName && (
93
+ { isDismissible && (
84
94
< Button
85
95
data-testid = "sign-in-gate-main_dismiss"
86
96
data-ignore = "global-link-styling"
You can’t perform that action at this time.
0 commit comments