feat: change Favorite label to Unfavorite when relay is already favorited
This commit is contained in:
parent
14c05f5ce9
commit
fa0ab9f385
15 changed files with 30 additions and 16 deletions
|
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue