Fix labels in invite link dialog (#10472)

This commit is contained in:
DS Boyce
2026-05-14 05:30:07 -07:00
committed by GitHub
parent da44df9124
commit c81174e4f0
@@ -199,7 +199,10 @@ export function InviteLinkDialog({
) )
break break
case Step.GENERATE: case Step.GENERATE:
header = l`Generate invite link` header =
joinLink && enabledStatus === 'enabled'
? l`Update invite link`
: l`Generate invite link`
content = ( content = (
<> <>
<View> <View>
@@ -234,7 +237,11 @@ export function InviteLinkDialog({
</View> </View>
<View style={[a.mt_4xl]}> <View style={[a.mt_4xl]}>
<Button <Button
label={l`Generate invite link`} label={
joinLink && enabledStatus === 'enabled'
? l`Update invite link`
: l`Generate invite link`
}
color="primary" color="primary"
size="large" size="large"
disabled={isSaving} disabled={isSaving}