mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(pending post page): opening settings would change theme
This commit is contained in:
@@ -256,13 +256,6 @@ const PostFormTable = ({ closeForm, postCid }: { closeForm: () => void; postCid:
|
|||||||
}
|
}
|
||||||
}, [anonMode, getAnonAddressForPost, getAnonAddressForReply, isInPostView]);
|
}, [anonMode, getAnonAddressForPost, getAnonAddressForReply, isInPostView]);
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
if (subplebbitAddress) {
|
|
||||||
resetSubmitStore();
|
|
||||||
resetPublishReplyOptions();
|
|
||||||
}
|
|
||||||
}, [subplebbitAddress, resetSubmitStore, resetPublishReplyOptions]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<table className={styles.postFormTable}>
|
<table className={styles.postFormTable}>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ export const isHomeView = (pathname: string): boolean => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const isPendingPostView = (pathname: string, params: ParamsType): boolean => {
|
export const isPendingPostView = (pathname: string, params: ParamsType): boolean => {
|
||||||
return pathname === `/profile/${params.accountCommentIndex}`;
|
return pathname === `/profile/${params.accountCommentIndex}` || pathname === `/profile/${params.accountCommentIndex}/settings`;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const isPostPageView = (pathname: string, params: ParamsType): boolean => {
|
export const isPostPageView = (pathname: string, params: ParamsType): boolean => {
|
||||||
|
|||||||
Reference in New Issue
Block a user