Update chat settings (#10449)

This commit is contained in:
DS Boyce
2026-05-08 15:49:44 -07:00
committed by GitHub
parent 75d8fb3dbd
commit 1609778ff6
4 changed files with 276 additions and 119 deletions
@@ -222,7 +222,7 @@ export function InviteLinkDialog({
name={option.name}
style={[a.flex_1]}>
{({selected}) => (
<TargetOption
<Toggle.RadioWithLabel
label={isOwner ? option.owner : option.member}
selected={selected}
/>
@@ -454,22 +454,3 @@ export function InviteLinkDialog({
</Dialog.Outer>
)
}
function TargetOption({label, selected}: {label: string; selected: boolean}) {
const t = useTheme()
return (
<View style={[a.flex_1, a.flex_row, a.align_center, a.gap_sm]}>
<Toggle.Radio />
<Toggle.LabelText
style={[
a.font_normal,
a.flex_1,
a.leading_tight,
selected ? t.atoms.text : t.atoms.text_contrast_high,
]}>
{label}
</Toggle.LabelText>
</View>
)
}