1
0
mirror of https://github.com/tooot-app/app synced 2024-12-22 07:34:06 +01:00

Fix Android menu indication

This commit is contained in:
xmflsct 2023-07-12 23:36:44 +02:00
parent f2b275d815
commit f7729f33db
No known key found for this signature in database
GPG Key ID: 078A93AB607D85E0
2 changed files with 7 additions and 4 deletions

View File

@ -374,7 +374,10 @@ const Explore = ({ route: { key: page } }: { route: { key: 'Explore' } }) => {
<DropdownMenu.ItemTitle children={item.title} />
<DropdownMenu.ItemSubtitle children={item.domain} />
{index === remotes?.findIndex(r => r.domain === remoteActive) ? (
<DropdownMenu.ItemIcon ios={{ name: 'trash' }} />
<DropdownMenu.ItemIcon
ios={{ name: 'trash' }}
androidIconName='ic_menu_delete'
/>
) : null}
</DropdownMenu.CheckboxItem>
))}
@ -391,7 +394,7 @@ const Explore = ({ route: { key: page } }: { route: { key: 'Explore' } }) => {
<DropdownMenu.ItemTitle
children={t('screenTabs:tabs.public.exploring.followRemote')}
/>
<DropdownMenu.ItemIcon ios={{ name: 'plus' }} />
<DropdownMenu.ItemIcon ios={{ name: 'plus' }} androidIconName='ic_menu_add' />
</DropdownMenu.Item>
</DropdownMenu.Group>
</DropdownMenu.Content>

View File

@ -71,7 +71,7 @@ const AccountInformationActions: React.FC = () => {
round
type='icon'
content='at-sign'
style={{ flex: 1, marginRight: StyleConstants.Spacing.S }}
style={{ marginRight: StyleConstants.Spacing.S }}
onPress={() => {}}
/>
</DropdownMenu.Trigger>
@ -129,7 +129,7 @@ const styles = StyleSheet.create({
base: {
alignSelf: 'flex-end',
flexDirection: 'row',
alignItems: 'stretch'
alignItems: 'center'
}
})