Fix "Show boosts" "Show replies" toggles (#580)

* Typo

* Fix CheckboxItem check mark lingers around
This commit is contained in:
John HU 2022-12-19 12:53:42 -08:00 committed by GitHub
parent 533ff1d549
commit 5967fff318
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ const Root: React.FC<NativeStackScreenProps<TabLocalStackParamList, 'Tab-Local-R
/>
{page.page === 'Following' && !instanceFollowingPage.showBoosts ? (
<Icon
name='MessageCircle'
name='Repeat'
size={StyleConstants.Font.Size.M}
color={colors.red}
style={{ marginLeft: StyleConstants.Spacing.S }}
@ -70,7 +70,7 @@ const Root: React.FC<NativeStackScreenProps<TabLocalStackParamList, 'Tab-Local-R
) : null}
{page.page === 'Following' && !instanceFollowingPage.showReplies ? (
<Icon
name='Repeat'
name='MessageCircle'
size={StyleConstants.Font.Size.M}
color={colors.red}
style={{ marginLeft: StyleConstants.Spacing.S }}
@ -100,7 +100,7 @@ const Root: React.FC<NativeStackScreenProps<TabLocalStackParamList, 'Tab-Local-R
</DropdownMenu.Item>
<DropdownMenu.CheckboxItem
key='showBoosts'
value={instanceFollowingPage.showBoosts ? 'on' : 'mixed'}
value={instanceFollowingPage.showBoosts ? 'on' : 'off'}
onValueChange={() => {
setQueryKey([
'Timeline',
@ -120,7 +120,7 @@ const Root: React.FC<NativeStackScreenProps<TabLocalStackParamList, 'Tab-Local-R
</DropdownMenu.CheckboxItem>
<DropdownMenu.CheckboxItem
key='showReplies'
value={instanceFollowingPage.showReplies ? 'on' : 'mixed'}
value={instanceFollowingPage.showReplies ? 'on' : 'off'}
onValueChange={() => {
setQueryKey([
'Timeline',