diff --git a/src/components/Navbar/index.jsx b/src/components/Navbar/index.jsx index d23437e82..5fe629349 100644 --- a/src/components/Navbar/index.jsx +++ b/src/components/Navbar/index.jsx @@ -148,9 +148,7 @@ function Navbar({ onClick, user, setUser }) {
  • - navigate(`/user/${user.username}`) - } + onClick={() => navigate(`/user/${user.username}`)} > (
    - +

    {name}

    @{username}
    diff --git a/src/components/Post/PostNav.jsx b/src/components/Post/PostNav.jsx index 407250b21..8818f9482 100644 --- a/src/components/Post/PostNav.jsx +++ b/src/components/Post/PostNav.jsx @@ -49,9 +49,7 @@ const PostNav = ({ - isAnonymous ? navigate("/signup") : likesHandler() - } + onClick={() => (isAnonymous ? navigate("/signup") : likesHandler())} > {tempLikeCount.indexOf(user?.uid) != -1 ? ( @@ -74,9 +72,7 @@ const PostNav = ({ { - isAnonymous - ? navigate("/signup") - : setisCommentOpen(true); + isAnonymous ? navigate("/signup") : setisCommentOpen(true); }} > diff --git a/src/components/SettingsComponents/Sidebar/index.jsx b/src/components/SettingsComponents/Sidebar/index.jsx index 027143e5c..99db9a4bb 100644 --- a/src/components/SettingsComponents/Sidebar/index.jsx +++ b/src/components/SettingsComponents/Sidebar/index.jsx @@ -15,88 +15,54 @@ const SettingsSidebar = () => {
      -
    • +
    • Sound
    • - + Notification
    • - + About
    • - + Theme
    • - + Privacy and Security
    • - + Help
    • - + {" "} Account diff --git a/src/components/postView/index.jsx b/src/components/postView/index.jsx index 1fc8fec3c..7f182ee43 100644 --- a/src/components/postView/index.jsx +++ b/src/components/postView/index.jsx @@ -239,16 +239,12 @@ const PostCommentView = ({ setFetchAgain, fetchAgain, postId, user, post }) => { src={content.avatar ? content.avatar : BlankImg} alt={content.displayName} className="post_view_comment_img" - onClick={() => - navigate(`/user/${content.username}`) - } + onClick={() => navigate(`/user/${content.username}`)} />

      - navigate(`/user/${content.username}`) - } + onClick={() => navigate(`/user/${content.username}`)} > {content.displayName}