Skip to content

Commit

Permalink
style: format code with Prettier
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in adf4c31 according to the output
from Prettier.

Details: #1291
  • Loading branch information
deepsource-autofix[bot] authored Dec 4, 2023
1 parent adf4c31 commit 2628413
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions src/components/postView/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"));

Expand Down
4 changes: 2 additions & 2 deletions src/pages/Home/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Profile/feed/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ function FeedPostDisplay({ post, id }) {
isMobileScreen
? MAX_CAPTION_MOBILE
: isTabScreen
? MAX_CAPTION_TAB
: undefined
? MAX_CAPTION_TAB
: undefined
}
/>
) : (
Expand Down
8 changes: 4 additions & 4 deletions src/pages/Profile/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,8 @@ function Profile() {
user.isAnonymous
? navigate("/signup")
: isFriendAlready
? handleRemoveFriend()
: handleSendFriendRequest()
? handleRemoveFriend()
: handleSendFriendRequest()
}
variant="contained"
color="primary"
Expand All @@ -587,8 +587,8 @@ function Profile() {
{isFriendAlready
? "Remove Friend"
: friendRequestSent
? "Remove friend request"
: "Add Friend"}
? "Remove friend request"
: "Add Friend"}
</Button>
)}
</div>
Expand Down

0 comments on commit 2628413

Please sign in to comment.