mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
refactor(core): remove the unused compareDate field from DocDisplayIconOptions (#10095)
This commit is contained in:
@@ -15,11 +15,7 @@ export const AppSidebarJournalButton = () => {
|
||||
const maybeDocId = location.pathname.split('/')[1];
|
||||
const isJournal = !!useLiveData(journalService.journalDate$(maybeDocId));
|
||||
|
||||
const JournalIcon = useLiveData(
|
||||
docDisplayMetaService.icon$(maybeDocId, {
|
||||
compareDate: new Date(),
|
||||
})
|
||||
);
|
||||
const JournalIcon = useLiveData(docDisplayMetaService.icon$(maybeDocId));
|
||||
const Icon = isJournal ? JournalIcon : TodayIcon;
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user