feat: add responvise page view (#2453)

This commit is contained in:
Whitewater
2023-05-21 16:25:25 -07:00
committed by GitHub
parent 1f510799e2
commit d68b421a4b
15 changed files with 381 additions and 287 deletions
@@ -10,7 +10,7 @@ import type {
} from '../components/page-list/all-page';
import { PageListTrashView } from '../components/page-list/all-page';
import PageList from '../components/page-list/all-page';
import { NewPageButton } from '../components/page-list/new-page-buttton';
import { NewPageButton } from '../components/page-list/components/new-page-buttton';
import type { OperationCellProps } from '../components/page-list/operation-cell';
import { OperationCell } from '../components/page-list/operation-cell';
import { toast } from '../ui/toast';
@@ -99,6 +99,14 @@ AffineAllPageList.args = {
],
};
export const AffinePublicPageList: StoryFn<PageListProps> = ({ ...props }) => (
<PageList {...props} />
);
AffinePublicPageList.args = {
...AffineAllPageList.args,
isPublicWorkspace: true,
};
export const AffineAllPageMobileList: StoryFn<PageListProps> = ({
...props
}) => <PageList {...props} />;