File tree 1 file changed +7
-5
lines changed
packages/client/modules/newTeam/components/NewTeamForm
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -221,9 +221,9 @@ const NewTeamForm = (props: Props) => {
221
221
}
222
222
}
223
223
224
- const goToBilling = ( isPublicTrigger : boolean = false ) => {
224
+ const goToBilling = ( ctaLocation : 'publicTeams' | 'createTeam' ) => {
225
225
SendClientSideEvent ( atmosphere , 'Upgrade CTA Clicked' , {
226
- upgradeCTALocation : isPublicTrigger ? 'publicTeams' : 'createTeam' ,
226
+ upgradeCTALocation : ctaLocation ,
227
227
orgId,
228
228
upgradeTier : 'team'
229
229
} )
@@ -329,7 +329,7 @@ const NewTeamForm = (props: Props) => {
329
329
< BoldText > { lockedSelectedOrg . name } </ BoldText >
330
330
{ ` has reached the limit of ` }
331
331
< BoldText > { `${ Threshold . MAX_STARTER_TIER_TEAMS } free teams.` } </ BoldText >
332
- < StyledLink onClick = { ( ) => goToBilling ( ) } > Upgrade</ StyledLink >
332
+ < StyledLink onClick = { ( ) => goToBilling ( 'publicTeams' ) } > Upgrade</ StyledLink >
333
333
{ ' to create more teams.' }
334
334
</ WarningMsg >
335
335
) }
@@ -355,8 +355,10 @@ const NewTeamForm = (props: Props) => {
355
355
</ >
356
356
) : (
357
357
< >
358
- < StyledLink onClick = { ( ) => goToBilling ( true ) } > Upgrade</ StyledLink > to
359
- make it private.
358
+ < StyledLink onClick = { ( ) => goToBilling ( 'createTeam' ) } >
359
+ Upgrade
360
+ </ StyledLink > { ' ' }
361
+ to make it private.
360
362
</ >
361
363
) }
362
364
</ div >
You can’t perform that action at this time.
0 commit comments