feat: change Favorite label to Unfavorite when relay is already favorited

This commit is contained in:
codytseng 2025-07-08 15:15:58 +08:00
parent 14c05f5ce9
commit fa0ab9f385
15 changed files with 30 additions and 16 deletions

View file

@ -123,7 +123,7 @@ function RelayItem({ urls }: { urls: string[] }) {
return (
<DrawerMenuItem onClick={handleClick}>
{saved ? <Check /> : <Plus />}
{t('Favorite')}
{saved ? t('Unfavorite') : t('Favorite')}
</DrawerMenuItem>
)
}
@ -131,7 +131,7 @@ function RelayItem({ urls }: { urls: string[] }) {
return (
<DropdownMenuItem className="flex gap-2" onClick={handleClick}>
{saved ? <Check /> : <Plus />}
{t('Favorite')}
{saved ? t('Unfavorite') : t('Favorite')}
</DropdownMenuItem>
)
}