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
@@ -45,7 +45,7 @@ const FavoriteTag = ({
e.stopPropagation();
toggleFavoritePage(id);
toast(
!favorite ? t('Removed to Favourites') : t('Added to Favourites')
favorite ? t('Removed from Favourites') : t('Added to Favourites')
);
}}
style={{
@@ -27,12 +27,12 @@ export const OperationCell = ({ pageMeta }: { pageMeta: PageMeta }) => {
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
onClick={() => {