mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
feat: add 'not found' view
This commit is contained in:
@@ -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)
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user