fix(theme): changing theme wouldn't work in pending post page

This commit is contained in:
Tom (plebeius.eth)
2024-09-08 16:31:21 +02:00
parent 6e472b2b17
commit 5f55adef07
2 changed files with 11 additions and 8 deletions
-3
View File
@@ -4,7 +4,6 @@ import { useAccountComment } from '@plebbit/plebbit-react-hooks';
import { isSettingsView } from '../../lib/utils/view-utils';
import { Post } from '../post';
import SettingsModal from '../../components/settings-modal';
import useTheme from '../../hooks/use-theme';
const PendingPost = () => {
const { accountCommentIndex } = useParams<{ accountCommentIndex?: string }>();
@@ -15,8 +14,6 @@ const PendingPost = () => {
const params = useParams();
const isInSettingsView = isSettingsView(location.pathname, params);
useTheme(post?.subplebbitAddress);
useEffect(() => window.scrollTo(0, 0), []);
useEffect(() => {