From 9e7baa26b31b6e79ff656319e1f04b8fcf9da9cf Mon Sep 17 00:00:00 2001 From: Johnny Zheng <jzheng2@emich.edu> Date: Wed, 19 Mar 2025 01:55:24 -0400 Subject: [PATCH] Commented out comment toggle --- src/App.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 203cfb7..6e8faba 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -123,7 +123,7 @@ function Home() { }>({}); // The comment section is toggled by the COMMENT button. - const [showComments, setShowComments] = useState(false); + // const [showComments, setShowComments] = useState(false); const [loggedIn, setLoggedIn] = useState(false); const [username, setUsername] = useState(""); @@ -248,7 +248,7 @@ function Home() { }, [comments, loggedIn]); const handleNext = () => { - toggleComments(); + // toggleComments(); setVideoIndex( (prevIndex) => (prevIndex + initState) % filteredArray.length ); @@ -507,10 +507,10 @@ function Home() { } // Toggle the comment section using the COMMENT button. - const toggleComments = () => { - setShowComments((prev) => !prev); - if (!showComments) displayComments(); - }; + // const toggleComments = () => { + // setShowComments((prev) => !prev); + // if (!showComments) displayComments(); + // }; // Post a comment and refresh the comments list. const postComment = async () => { @@ -721,7 +721,7 @@ function Home() { </> )} {/* Comment Section toggled by the COMMENT button */} - {showComments && ( + {/* {showComments && ( */} <div className="comment-section" style={{ @@ -861,7 +861,7 @@ function Home() { </div> )} </div> - )} + {/* )} */} {notification && ( <div -- GitLab