diff --git a/packages/component/src/components/page-list/all-pages-body.tsx b/packages/component/src/components/page-list/all-pages-body.tsx index 2b0c42b7de..83b79fd9eb 100644 --- a/packages/component/src/components/page-list/all-pages-body.tsx +++ b/packages/component/src/components/page-list/all-pages-body.tsx @@ -1,6 +1,7 @@ import { TableBody, TableCell } from '@affine/component'; import { useAFFiNEI18N } from '@affine/i18n/hooks'; import { useMediaQuery, useTheme } from '@mui/material'; +import type { ReactNode } from 'react'; import { Fragment } from 'react'; import { FavoriteTag } from './components/favorite-tag'; @@ -11,6 +12,23 @@ import type { DateKey, ListData } from './type'; import { useDateGroup } from './use-date-group'; import { formatDate } from './utils'; +export const GroupRow = ({ children }: { children: ReactNode }) => { + return ( + + + {children} + + + ); +}; + export const AllPagesBody = ({ isPublicWorkspace, data, @@ -50,17 +68,7 @@ export const AllPagesBody = ({ {groupName && (index === 0 || dataWithGroup[index - 1].groupName !== groupName) && ( - - - {groupName} - - + {groupName} )}