[WEB-1436] chore: pages improvement. (#4657)
* add empty state if no pages are available. * set access to private in create page modal when the modal is open form private tab.
This commit is contained in:
parent
608e193c36
commit
a2cdbd52dc
17 changed files with 95 additions and 64 deletions
|
|
@ -486,11 +486,6 @@ const emptyStateDetails = {
|
|||
path: "/empty-state/onboarding/pages",
|
||||
primaryButton: {
|
||||
text: "Create your first page",
|
||||
comicBox: {
|
||||
title: "A page can be a doc or a doc of docs.",
|
||||
description:
|
||||
"We wrote Nikhil and Meera’s love story. You could write your project’s mission, goals, and eventual vision.",
|
||||
},
|
||||
},
|
||||
accessType: "project",
|
||||
access: EUserProjectRoles.MEMBER,
|
||||
|
|
|
|||
|
|
@ -32,3 +32,13 @@ export const PAGE_SORT_BY_OPTIONS: {
|
|||
{ key: "asc", label: "Ascending" },
|
||||
{ key: "desc", label: "Descending" },
|
||||
];
|
||||
|
||||
export type TCreatePageModal = {
|
||||
isOpen: boolean;
|
||||
pageAccess?: EPageAccess;
|
||||
}
|
||||
|
||||
export const DEFAULT_CREATE_PAGE_MODAL_DATA: TCreatePageModal = {
|
||||
isOpen: false,
|
||||
pageAccess: EPageAccess.PUBLIC,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue