Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: format code with Prettier #1287

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading