From 64b272515171b3fe8501f204e9797ea07e9f7923 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sat, 9 Dec 2023 08:10:47 +0000 Subject: [PATCH] style: format code with Prettier This commit fixes the style issues introduced in bdc6d99 according to the output from Prettier. Details: https://github.com/narayan954/dummygram/pull/1301 --- src/App.jsx | 16 ++++++++-------- 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, 18 insertions(+), 18 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index a1a405c98..6538a3ccd 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -21,22 +21,22 @@ 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 ------------------------------------------------ const Notifications = React.lazy(() => import("./components/Notification")); const SideBar = React.lazy(() => import("./components/SideBar")); const Navbar = React.lazy(() => import("./components/Navbar")); -const DeleteAccount = React.lazy(() => - import("./components/SettingsComponents/DeleteAccount"), +const DeleteAccount = React.lazy( + () => import("./components/SettingsComponents/DeleteAccount"), ); -const SettingsSidebar = React.lazy(() => - import("./components/SettingsComponents/Sidebar"), +const SettingsSidebar = React.lazy( + () => import("./components/SettingsComponents/Sidebar"), ); -const SoundSetting = React.lazy(() => - import("./components/SettingsComponents/Sounds"), +const SoundSetting = React.lazy( + () => import("./components/SettingsComponents/Sounds"), ); export function getModalStyle() { 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 97d9cc949..cd69856e6 100644 --- a/src/pages/Profile/index.jsx +++ b/src/pages/Profile/index.jsx @@ -574,8 +574,8 @@ function Profile() { user.isAnonymous ? navigate("/signup") : isFriendAlready - ? handleRemoveFriend() - : handleSendFriendRequest() + ? handleRemoveFriend() + : handleSendFriendRequest() } variant="contained" color="primary" @@ -588,8 +588,8 @@ function Profile() { {isFriendAlready ? "Remove Friend" : friendRequestSent - ? "Remove friend request" - : "Add Friend"} + ? "Remove friend request" + : "Add Friend"} )}