feat(post page): scroll to top, show full content, no hide thread

This commit is contained in:
plebeius.eth
2024-04-04 11:41:17 +02:00
parent 313c8d5a88
commit e960f791b9
2 changed files with 21 additions and 12 deletions
+5
View File
@@ -1,3 +1,4 @@
import { useEffect } from 'react';
import { useComment } from '@plebbit/plebbit-react-hooks';
import { useParams } from 'react-router-dom';
import Post from '../../components/post/post';
@@ -9,6 +10,10 @@ const PostPage = () => {
const post = useComment({ commentCid });
useEffect(() => {
window.scrollTo(0, 0);
}, []);
return (
<div className={styles.content}>
<Post post={post} showAllReplies={true} />