From 02267ecb1a3c5bf1a65a5081ab070846fe04c6a4 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 9 Jul 2023 18:28:13 +0000 Subject: [PATCH] style: format code with prettier Format code with prettier This commit fixes the style issues introduced in c237ace according to the output from Prettier. Details: https://app.deepsource.com/gh/narayan954/dummygram/transform/7c7719c0-46cf-4880-9dc9-b6f4a02d47bb/ --- src/pages/FooterPages/About/index.jsx | 12 ++++++------ src/pages/Profile/index.jsx | 6 +++--- src/pages/Signup/index.jsx | 14 +++++++------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/pages/FooterPages/About/index.jsx b/src/pages/FooterPages/About/index.jsx index a20088d9c..570ea199d 100644 --- a/src/pages/FooterPages/About/index.jsx +++ b/src/pages/FooterPages/About/index.jsx @@ -20,7 +20,7 @@ const About = () => { if (match) { const lastPageUrl = match[1]; const pageCount = new URLSearchParams( - new URL(lastPageUrl).search + new URL(lastPageUrl).search, ).get("page"); return parseInt(pageCount); } else { @@ -34,12 +34,12 @@ const About = () => { useEffect(() => { getCount( - "https://api.github.com/repos/narayan954/dummygram/commits?sha=master&per_page=1&page=1" + "https://api.github.com/repos/narayan954/dummygram/commits?sha=master&per_page=1&page=1", ).then((count) => { setCommits(count); }); getCount( - "https://api.github.com/repos/narayan954/dummygram/contributors?per_page=1&anon=true" + "https://api.github.com/repos/narayan954/dummygram/contributors?per_page=1&anon=true", ).then((count) => { setContributors(count); }); @@ -52,9 +52,9 @@ const About = () => { setForks(data.forks_count); setStars(data.stargazers_count); }) - .catch(error => { - console.error("Error",error) - }) + .catch((error) => { + console.error("Error", error); + }); }, []); return ( diff --git a/src/pages/Profile/index.jsx b/src/pages/Profile/index.jsx index f4b19272d..11fc20b5b 100644 --- a/src/pages/Profile/index.jsx +++ b/src/pages/Profile/index.jsx @@ -70,9 +70,9 @@ function Profile() { }); setFriendRequestSent(false); }) - .catch(error => console.error(error)) + .catch((error) => console.error(error)); }) - .catch(error => console.error(error)) + .catch((error) => console.error(error)); } else { const friendRequestData = { sender: currentUserUid, @@ -234,7 +234,7 @@ function Profile() { variant: "success", }); }) - .catch(error => console.error(error)) + .catch((error) => console.error(error)); }, ); setVisible(false); diff --git a/src/pages/Signup/index.jsx b/src/pages/Signup/index.jsx index 35de4c3cd..2d15ddef4 100644 --- a/src/pages/Signup/index.jsx +++ b/src/pages/Signup/index.jsx @@ -118,7 +118,7 @@ const SignupScreen = () => { name: username, photoURL: auth.currentUser.photoURL, posts: [], - }) + }), ) .then(() => { playSuccessSound(); @@ -126,7 +126,7 @@ const SignupScreen = () => { `Congratulations ${fullName},you have joined Dummygram`, { variant: "success", - } + }, ); navigate("/dummygram"); }) @@ -164,8 +164,8 @@ const SignupScreen = () => { variant: "success", }); }) - .catch(error => console.error(error)) - } + .catch((error) => console.error(error)); + }, ); }) .catch((error) => { @@ -208,7 +208,7 @@ const SignupScreen = () => { `Congratulations ${fullName},you have joined Dummygram`, { variant: "success", - } + }, ); navigate("/dummygram"); }) @@ -222,7 +222,7 @@ const SignupScreen = () => { .catch((error) => enqueueSnackbar(error.message, { variant: "error", - }) + }), ); }; @@ -251,7 +251,7 @@ const SignupScreen = () => { `Congratulations ${fullName},you have joined Dummygram`, { variant: "success", - } + }, ); navigate("/dummygram"); })