feat: supports sort all page (#2356)

This commit is contained in:
Whitewater
2023-05-15 08:50:43 -07:00
committed by GitHub
parent 0c561da061
commit 9ff7dbffb7
6 changed files with 192 additions and 47 deletions

View File

@@ -50,9 +50,9 @@ AffineAllPageList.args = {
favorite: false,
icon: <PageIcon />,
isPublicPage: true,
title: 'Example Public Page with long title that will be truncated',
title: '1 Example Public Page with long title that will be truncated',
createDate: '2021-01-01',
updatedDate: '2021-01-01',
updatedDate: '2021-01-02',
bookmarkPage: () => toast('Bookmark page'),
onClickPage: () => toast('Click page'),
onDisablePublicSharing: () => toast('Disable public sharing'),
@@ -64,8 +64,8 @@ AffineAllPageList.args = {
favorite: true,
isPublicPage: false,
icon: <PageIcon />,
title: 'Favorited Page',
createDate: '2021-01-01',
title: '2 Favorited Page',
createDate: '2021-01-02',
updatedDate: '2021-01-01',
bookmarkPage: () => toast('Bookmark page'),
onClickPage: () => toast('Click page'),
@@ -90,7 +90,7 @@ AffineTrashPageList.args = {
pageId: '1',
icon: <PageIcon />,
title: 'Example Page',
updatedDate: '2021-01-01',
updatedDate: '2021-02-01',
createDate: '2021-01-01',
trashDate: '2021-01-01',
onClickPage: () => toast('Click page'),