fix: message wrong about favourites (#669)

* fix: wrong message
* chore: update type
This commit is contained in:
JimmFly
2023-01-05 12:55:15 +08:00
committed by GitHub
parent 87451a19bb
commit 8b8665df6b
7 changed files with 26 additions and 13 deletions

View File

@@ -37,12 +37,12 @@ const PopoverContent = () => {
onClick={() => {
toggleFavoritePage(id);
toast(
!favorite ? t('Removed to Favourites') : t('Added to Favourites')
favorite ? t('Removed from Favourites') : t('Added to Favourites')
);
}}
icon={favorite ? <FavouritedIcon /> : <FavouritesIcon />}
>
{favorite ? t('Remove to favourites') : t('Add to favourites')}
{favorite ? t('Remove from favourites') : t('Add to favourites')}
</MenuItem>
<MenuItem
icon={mode === 'page' ? <EdgelessIcon /> : <PaperIcon />}