forked from github/plane
fix: empty state error handling added and page empty state key updated (#3915)
This commit is contained in:
parent
2074bb97db
commit
cc069b61aa
@ -39,6 +39,10 @@ export const EmptyState: React.FC<EmptyStateProps> = (props) => {
|
||||
} = useUser();
|
||||
// theme
|
||||
const { resolvedTheme } = useTheme();
|
||||
|
||||
// if empty state type is not found
|
||||
if (!EMPTY_STATE_DETAILS[type]) return null;
|
||||
|
||||
// current empty state details
|
||||
const { key, title, description, path, primaryButton, secondaryButton, accessType, access } =
|
||||
EMPTY_STATE_DETAILS[type];
|
||||
|
@ -69,7 +69,7 @@ export enum EmptyStateType {
|
||||
PROJECT_VIEW = "project-view",
|
||||
PROJECT_PAGE = "project-page",
|
||||
PROJECT_PAGE_ALL = "project-page-all",
|
||||
PROJECT_PAGE_FAVORITE = "project-page-favorite",
|
||||
PROJECT_PAGE_FAVORITE = "project-page-favorites",
|
||||
PROJECT_PAGE_PRIVATE = "project-page-private",
|
||||
PROJECT_PAGE_SHARED = "project-page-shared",
|
||||
PROJECT_PAGE_ARCHIVED = "project-page-archived",
|
||||
@ -475,8 +475,8 @@ const emptyStateDetails = {
|
||||
"Pages help you organise your thoughts to create wikis, discussions or even document heated takes for your project. Use it wisely!",
|
||||
path: "/empty-state/pages/all",
|
||||
},
|
||||
"project-page-favorite": {
|
||||
key: "project-page-favorite",
|
||||
"project-page-favorites": {
|
||||
key: "project-page-favorites",
|
||||
title: "No favorite pages yet",
|
||||
description: "Favorites for quick access? mark them and find them right here.",
|
||||
path: "/empty-state/pages/favorites",
|
||||
|
Loading…
Reference in New Issue
Block a user