From 0835270d78c55fec1f54569514c7480b9eca8200 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 18:10:32 +0000 Subject: [PATCH] style: format code with Prettier This commit fixes the style issues introduced in 2b71848 according to the output from Prettier. Details: https://github.com/narayan954/dummygram/pull/1262 --- src/App.jsx | 4 ++-- src/components/postView/index.jsx | 4 ++-- src/pages/Home/index.jsx | 4 ++-- src/pages/Profile/feed/index.jsx | 4 ++-- src/pages/Profile/index.jsx | 8 ++++---- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 051359ca4..c65c3f516 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -28,8 +28,8 @@ const SignupScreen = React.lazy(() => import("./pages/Signup")); const ForgotPassword = React.lazy(() => import("./pages/ForgotPassword")); const Friends = React.lazy(() => import("./pages/Friends")); const NotFound = React.lazy(() => import("./pages/NotFound")); -const Contributors = React.lazy(() => - import("./pages/FooterPages/ContributorPage"), +const Contributors = React.lazy( + () => import("./pages/FooterPages/ContributorPage"), ); const HelpCenter = React.lazy(() => import("./pages/FooterPages/HelpCenter")); // ------------------------------------- Components ------------------------------------------------ diff --git a/src/components/postView/index.jsx b/src/components/postView/index.jsx index 7f182ee43..b81390199 100644 --- a/src/components/postView/index.jsx +++ b/src/components/postView/index.jsx @@ -20,8 +20,8 @@ import firebase from "firebase/compat/app"; import useCreatedAt from "../../hooks/useCreatedAt.jsx"; import { useNavigate } from "react-router-dom"; -const ImageSlider = React.lazy(() => - import("../../reusableComponents/ImageSlider"), +const ImageSlider = React.lazy( + () => import("../../reusableComponents/ImageSlider"), ); const PostDetails = React.lazy(() => import("./PostDetails.jsx")); diff --git a/src/pages/Home/index.jsx b/src/pages/Home/index.jsx index c76d68f11..8b59cdcb5 100644 --- a/src/pages/Home/index.jsx +++ b/src/pages/Home/index.jsx @@ -5,8 +5,8 @@ import { db } from "../../lib/firebase"; const Post = React.lazy(() => import("../../components/Post")); const Suggestion = React.lazy(() => import("../../components/Suggestions")); -const GuestSignUpBtn = React.lazy(() => - import("../../components/Guest/GuestSignUpBtn"), +const GuestSignUpBtn = React.lazy( + () => import("../../components/Guest/GuestSignUpBtn"), ); const PAGESIZE = 10; diff --git a/src/pages/Profile/feed/index.jsx b/src/pages/Profile/feed/index.jsx index 95101a230..28bb7981c 100644 --- a/src/pages/Profile/feed/index.jsx +++ b/src/pages/Profile/feed/index.jsx @@ -100,8 +100,8 @@ function FeedPostDisplay({ post, id }) { isMobileScreen ? MAX_CAPTION_MOBILE : isTabScreen - ? MAX_CAPTION_TAB - : undefined + ? MAX_CAPTION_TAB + : undefined } /> ) : ( diff --git a/src/pages/Profile/index.jsx b/src/pages/Profile/index.jsx index 8bfe888e1..67ed6323d 100644 --- a/src/pages/Profile/index.jsx +++ b/src/pages/Profile/index.jsx @@ -573,8 +573,8 @@ function Profile() { user.isAnonymous ? navigate("/signup") : isFriendAlready - ? handleRemoveFriend() - : handleSendFriendRequest() + ? handleRemoveFriend() + : handleSendFriendRequest() } variant="contained" color="primary" @@ -587,8 +587,8 @@ function Profile() { {isFriendAlready ? "Remove Friend" : friendRequestSent - ? "Remove friend request" - : "Add Friend"} + ? "Remove friend request" + : "Add Friend"} )}