mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-09 13:15:51 +08:00
fix: incorrect bookmark toast text (#2815)
Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
@@ -209,11 +209,10 @@ export const BlockSuitePageList: React.FC<BlockSuitePageListProps> = ({
|
|||||||
toast(t['restored']({ title: pageMeta.title || 'Untitled' }));
|
toast(t['restored']({ title: pageMeta.title || 'Untitled' }));
|
||||||
},
|
},
|
||||||
bookmarkPage: () => {
|
bookmarkPage: () => {
|
||||||
|
const status = pageMeta.favorite;
|
||||||
toggleFavorite(pageMeta.id);
|
toggleFavorite(pageMeta.id);
|
||||||
toast(
|
toast(
|
||||||
pageMeta.favorite
|
status ? t['Removed from Favorites']() : t['Added to Favorites']()
|
||||||
? t['Removed from Favorites']()
|
|
||||||
: t['Added to Favorites']()
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
onDisablePublicSharing: () => {
|
onDisablePublicSharing: () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user