Skip to content

Commit

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

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

Details: https://app.deepsource.com/gh/narayan954/dummygram/transform/82d40679-7aa6-4df9-82a8-aa8f4e378eed/

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
  • Loading branch information
deepsource-autofix[bot] committed Jul 9, 2023
1 parent 323a50e commit 6a15112
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Post/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function Post(prop) {
snapshot.docs.map((doc) => ({
id: doc.id,
content: doc.data(),
}))
})),
);
});
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/postView/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const PostDetails = React.lazy(() => import("./PostDetails.jsx"));
const PostViewComments = React.lazy(() => import("./PostViewComments.jsx"));
const PostViewMenu = React.lazy(() => import("./PostViewMenu.jsx"));
const ImageSlider = React.lazy(() =>
import("../../reusableComponents/ImageSlider")
import("../../reusableComponents/ImageSlider"),
);
const ReadMore = React.lazy(() => import("../ReadMore"));
const PostCommentView = ({
Expand All @@ -53,7 +53,7 @@ const PostCommentView = ({

const [comments, setComments] = React.useState(null);
const [likesNo, setLikesNo] = React.useState(
likecount ? likecount.length : 0
likecount ? likecount.length : 0,
);
const tempLikeCount = likecount ? [...likecount] : [];
const [showEmojis, setShowEmojis] = React.useState(false);
Expand Down Expand Up @@ -115,7 +115,7 @@ const PostCommentView = ({
snapshot.docs.map((doc) => ({
id: doc.id,
content: doc.data(),
}))
})),
);
});
}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/FooterPages/Feedback/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const Feedback = () => {
"service_hg3vdpg",
"dummygram_feedback",
form.current,
"OV1vxF7lxYkw_RRWy"
"OV1vxF7lxYkw_RRWy",
)
.then(
(result) => {
Expand All @@ -30,7 +30,7 @@ export const Feedback = () => {
},
(error) => {
console.error("Error:", error);
}
},
);
};

Expand Down

0 comments on commit 6a15112

Please sign in to comment.