fix context menu i18n & view actions

This commit is contained in:
austinried 2022-04-21 11:16:28 +09:00
parent 00652952d8
commit 05e4b46469

View File

@ -169,7 +169,7 @@ const OptionStar = withSuspenseMemo<{
return ( return (
<ContextMenuIconTextOption <ContextMenuIconTextOption
IconComponentRaw={<Star starred={!!query.data} size={26} />} IconComponentRaw={<Star starred={!!query.data} size={26} />}
text={(query.data ? t('unstar') : t('context.actions.star')) + (text ? ` ${text}` : '')} text={(query.data ? t('context.actions.unstar') : t('context.actions.star')) + (text ? ` ${text}` : '')}
onSelect={() => toggle.mutate()} onSelect={() => toggle.mutate()}
/> />
) )
@ -191,8 +191,8 @@ const OptionViewArtist = withSuspenseMemo<{
IconComponent={IconFA} IconComponent={IconFA}
name="microphone" name="microphone"
size={26} size={26}
text={t('view')} text={t('resources.artist.actions.view')}
onSelect={() => navigation.navigate('resources.artist.actions.artist', { id: artistId, title: artist })} onSelect={() => navigation.navigate('artist', { id: artistId, title: artist })}
/> />
) )
}) })
@ -213,8 +213,8 @@ const OptionViewAlbum = withSuspenseMemo<{
IconComponent={IconFA5} IconComponent={IconFA5}
name="compact-disc" name="compact-disc"
size={26} size={26}
text={t('view')} text={t('resources.album.actions.view')}
onSelect={() => navigation.navigate('resources.album.actions.album', { id: albumId, title: album })} onSelect={() => navigation.navigate('album', { id: albumId, title: album })}
/> />
) )
}) })