There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
chore: clean all page list (#2245)
Whitewaterdbd3249ae5e5
diff --git a/apps/web/src/components/blocksuite/block-suite-page-list/index.tsx b/apps/web/src/components/blocksuite/block-suite-page-list/index.tsxindex f2241678b4..1ff0b25917 100644--- a/apps/web/src/components/blocksuite/block-suite-page-list/index.tsx+++ b/apps/web/src/components/blocksuite/block-suite-page-list/index.tsx@@ -101,7 +101,6 @@ export const BlockSuitePageList: React.FC<BlockSuitePageListProps> = ({record[pageMeta.id] === 'edgeless' ? <EdgelessIcon /> : <PageIcon />,pageId: pageMeta.id,title: pageMeta.title,- favorite: !!pageMeta.favorite,createDate: formatDate(pageMeta.createDate),updatedDate: formatDate(pageMeta.updatedDate),onClickPage: () => onOpenPage(pageMeta.id),diff --git a/packages/component/src/components/page-list/all-page.tsx b/packages/component/src/components/page-list/all-page.tsxindex 457cdd72f8..aeb58d00f7 100644--- a/packages/component/src/components/page-list/all-page.tsx+++ b/packages/component/src/components/page-list/all-page.tsx@@ -233,7 +233,6 @@ export type TrashListData = {pageId: string;icon: JSX.Element;title: string;- favorite: boolean;createDate: string;updatedDate?: string;trashDate?: string;diff --git a/packages/component/src/stories/PageList.stories.tsx b/packages/component/src/stories/PageList.stories.tsxindex f3c1ca5326..7ffb6ea246 100644--- a/packages/component/src/stories/PageList.stories.tsx+++ b/packages/component/src/stories/PageList.stories.tsx@@ -50,10 +50,23 @@ AffineAllPageList.args = {favorite: false,icon: <PageIcon />,isPublicPage: true,- title: 'Example Page',+ title: 'Example Public Page with long title that will be truncated',+ createDate: '2021-01-01',updatedDate: '2021-01-01',+ bookmarkPage: () => toast('Bookmark page'),+ onClickPage: () => toast('Click page'),+ onDisablePublicSharing: () => toast('Disable public sharing'),+ onOpenPageInNewTab: () => toast('Open page in new tab'),+ removeToTrash: () => toast('Remove to trash'),+ },+ {+ pageId: '2',+ favorite: true,+ isPublicPage: false,+ icon: <PageIcon />,+ title: 'Favorited Page',createDate: '2021-01-01',- trashDate: '2021-01-01',+ updatedDate: '2021-01-01',bookmarkPage: () => toast('Bookmark page'),onClickPage: () => toast('Click page'),onDisablePublicSharing: () => toast('Disable public sharing'),@@ -75,7 +88,6 @@ AffineTrashPageList.args = {list: [{pageId: '1',- favorite: false,icon: <PageIcon />,title: 'Example Page',updatedDate: '2021-01-01',@@ -85,5 +97,16 @@ AffineTrashPageList.args = {onPermanentlyDeletePage: () => toast('Permanently delete page'),onRestorePage: () => toast('Restore page'),},+ {+ pageId: '2',+ icon: <PageIcon />,+ title: 'Example Page with long title that will be truncated',+ updatedDate: '2021-01-01',+ createDate: '2021-01-01',+ trashDate: '2021-01-01',+ onClickPage: () => toast('Click page'),+ onPermanentlyDeletePage: () => toast('Permanently delete page'),+ onRestorePage: () => toast('Restore page'),+ },],};