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 bdc6d99 according to the output
from Prettier.

Details: #1301
  • Loading branch information
deepsource-autofix[bot] committed Dec 9, 2023
1 parent bdc6d99 commit 64b2725
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
16 changes: 8 additions & 8 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
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 @@ -574,8 +574,8 @@ function Profile() {
user.isAnonymous
? navigate("/signup")
: isFriendAlready
? handleRemoveFriend()
: handleSendFriendRequest()
? handleRemoveFriend()
: handleSendFriendRequest()
}
variant="contained"
color="primary"
Expand All @@ -588,8 +588,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 64b2725

Please sign in to comment.