From c67c79d92d192e15846789b8cc9a350ad743e304 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 4 Jul 2023 16:48:22 +0000 Subject: [PATCH] style: format code with prettier Format code with prettier This commit fixes the style issues introduced in 18916fd according to the output from Prettier. Details: https://app.deepsource.com/gh/narayan954/dummygram/transform/d4f1ea10-e329-41db-977b-43af78e9c5aa/ --- src/components/SideBar/index.jsx | 10 +++--- src/components/postView/index.jsx | 51 +++++++++++++++++-------------- 2 files changed, 33 insertions(+), 28 deletions(-) diff --git a/src/components/SideBar/index.jsx b/src/components/SideBar/index.jsx index 89bb2ab9a..8d113a102 100644 --- a/src/components/SideBar/index.jsx +++ b/src/components/SideBar/index.jsx @@ -57,8 +57,8 @@ function SideBar() { state: { name: user.displayName, email: user.email, - avatar: user.photoURL - } + avatar: user.photoURL, + }, }) } > @@ -84,7 +84,7 @@ function SideBar() { setOpenNewUpload(false)} @@ -93,7 +93,7 @@ function SideBar() { style={{ backgroundColor: "var(--bg-color)", textAlign: "center", - color: "var(--color)" + color: "var(--color)", }} > ); const ReadMore = React.lazy(() => import("../ReadMore")); const PostCommentView = ({ - setFetchAgain, - shareModal, - fetchAgain, - postId, - user, - post, - setLink, - setPostText - }) => { + setFetchAgain, + shareModal, + fetchAgain, + postId, + user, + post, + setLink, + setPostText, +}) => { const navigate = useNavigate(); const theme = useTheme(); const fullScreen = useMediaQuery(theme.breakpoints.down("md")); @@ -67,7 +72,7 @@ const PostCommentView = ({ } const data = { - likecount: tempLikeCount + likecount: tempLikeCount, }; await updateDoc(docRef, data) .then(() => setFetchAgain(!fetchAgain)) @@ -85,7 +90,7 @@ const PostCommentView = ({ db.collection("posts").doc(postId).collection("comments").add({ text: commentValue, username: user.displayName, - timestamp: firebase.firestore.FieldValue.serverTimestamp() + timestamp: firebase.firestore.FieldValue.serverTimestamp(), }); commentRef.current.value = ""; } @@ -108,7 +113,7 @@ const PostCommentView = ({ setComments( snapshot.docs.map((doc) => ({ id: doc.id, - content: doc.data() + content: doc.data(), })) ); }); @@ -139,7 +144,7 @@ const PostCommentView = ({ imageUrl: url, imageWidth: 0, imageHeight: 0, - thumbnail: null + thumbnail: null, })); } @@ -211,16 +216,16 @@ const PostCommentView = ({ "&:hover": { boxShadow: "rgba(100, 100, 111, 0.2) 0px 7px 17px 0px", border: "2px solid black", - scale: "1.1" - } + scale: "1.1", + }, }} onClick={() => { navigate("/dummygram/profile", { state: { name: username, avatar: avatar, - email: email - } + email: email, + }, }); }} /> @@ -290,7 +295,7 @@ const PostCommentView = ({ style={{ zIndex: 999 }} onEmojiClick={onEmojiClick} previewConfig={{ - showPreview: false + showPreview: false, }} /> @@ -310,7 +315,7 @@ const PostCommentView = ({ backgroundColor: "var(--bg-color)", color: "var(--color)", borderRadius: "22px", - margin: "4px 0px" + margin: "4px 0px", }} />