Skip to content

Commit

Permalink
style: format code with prettier (#850)
Browse files Browse the repository at this point in the history
Format code with prettier

This commit fixes the style issues introduced in ad8bc14 according to the output
from Prettier.

Details: https://app.deepsource.com/gh/narayan954/dummygram/transform/e40b3154-1a49-4467-b7f6-9ffd778ede52/

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
  • Loading branch information
deepsource-autofix[bot] committed Jul 17, 2023
1 parent ad8bc14 commit 331fd27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const ForgotPassword = React.lazy(() => import("./pages/ForgotPassword"));
const NotFound = React.lazy(() => import("./pages/NotFound"));
const Settings = React.lazy(() => import("./pages/Settings"));
const Contributors = React.lazy(() =>
import("./pages/FooterPages/ContributorPage/index")
import("./pages/FooterPages/ContributorPage/index"),
);
// ------------------------------------- Components ------------------------------------------------
const Favorite = React.lazy(() => import("./components/Favorite.jsx"));
Expand Down Expand Up @@ -120,7 +120,7 @@ function App() {
snapshot.docs.map((doc) => ({
id: doc.id,
post: doc.data(),
}))
})),
);
});
}, []);
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 @@ -158,7 +158,7 @@ function Profile() {
setEmail(
location?.state?.name === authUser?.displayName
? location?.state?.email || authUser.email
: ""
: "",
);
setUid(location?.state?.uid || authUser.uid);
} else {
Expand All @@ -176,7 +176,7 @@ function Profile() {
if (auth.currentUser) {
const usernameQ = query(
collection(db, "users"),
where("uid", "==", auth.currentUser.uid)
where("uid", "==", auth.currentUser.uid),
);
const unsubscribe = onSnapshot(usernameQ, (querySnapshot) => {
querySnapshot.forEach((doc) => {
Expand All @@ -190,7 +190,7 @@ function Profile() {
useEffect(() => {
const q = query(
collection(db, "posts"),
where("username", "==", location?.state?.name || name)
where("username", "==", location?.state?.name || name),
);
const unsubscribe = onSnapshot(q, (querySnapshot) => {
const userPosts = [];
Expand Down Expand Up @@ -245,7 +245,7 @@ function Profile() {
});
})
.catch((error) => console.error(error));
}
},
);
setVisible(false);
};
Expand Down

0 comments on commit 331fd27

Please sign in to comment.