From a8edd367cba2c7ef5e5f475ccd3b1fb7d05bf696 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 18 Sep 2023 21:16:36 +0000 Subject: [PATCH] style: format code with Prettier This commit fixes the style issues introduced in b050394 according to the output from Prettier. Details: None --- src/components/Navbar/index.jsx | 4 +- src/components/Post/LikesDialogBox.jsx | 5 +- src/components/Post/PostNav.jsx | 8 +-- .../SettingsComponents/Sidebar/index.jsx | 60 ++++--------------- src/components/postView/index.jsx | 8 +-- 5 files changed, 19 insertions(+), 66 deletions(-) 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}