feat: add 'not found' view

This commit is contained in:
plebeius.eth
2024-05-06 21:40:17 +02:00
parent cbc9230ead
commit 5d124d2121
12 changed files with 144 additions and 13 deletions
+11
View File
@@ -34,3 +34,14 @@ export const isCatalogView = (pathname: string, params: ParamsType): boolean =>
export const isPendingPostView = (pathname: string, params: ParamsType): boolean => {
return pathname === `/profile/${params.accountCommentIndex}`;
};
export const isNotFoundView = (pathname: string, params: ParamsType): boolean => {
return (
!isHomeView(pathname) &&
!isDescriptionView(pathname, params) &&
!isRulesView(pathname, params) &&
!isPostPageView(pathname, params) &&
!isCatalogView(pathname, params) &&
!isPendingPostView(pathname, params)
);
};