From 033bc5c4cffa41f9b4edfff1443cb04774a6dbb0 Mon Sep 17 00:00:00 2001 From: Sachin Chaurasiya Date: Thu, 11 Aug 2022 17:20:10 +0530 Subject: [PATCH 1/4] =?UTF-8?q?Fix=20=F0=9F=90=9B=20Bug=20#479:=20The=20Co?= =?UTF-8?q?nsole=20has=20bunch=20of=20warnings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/createplay/CreatePlay.jsx | 42 +++-- src/common/footer/ExtendedFooter.jsx | 147 ++++++++-------- src/common/footer/Footer.jsx | 16 +- src/common/playcreated/PlayCreated.jsx | 147 +++++++++------- src/common/playlists/PlayList.jsx | 30 ++-- src/common/services/issues.js | 2 - src/common/services/plays.js | 3 +- src/common/services/request/index.js | 2 +- src/common/services/string.js | 7 +- src/common/techstack/TechStacks.jsx | 28 ++-- .../ContextWithRealUsecases.jsx | 16 +- src/plays/countries-statics/Country.jsx | 13 +- src/plays/countries-statics/Map.jsx | 8 +- src/plays/fun-quiz/QuizScreen.jsx | 47 ++++-- src/plays/image-carousel/ImageCarousel.tsx | 157 ++++++++++-------- .../password-generator/PasswordGenerator.jsx | 101 ++++++----- src/plays/quote-generator/QuoteGenerator.jsx | 16 +- 17 files changed, 430 insertions(+), 352 deletions(-) diff --git a/src/common/createplay/CreatePlay.jsx b/src/common/createplay/CreatePlay.jsx index 93c2a31223..212a252755 100644 --- a/src/common/createplay/CreatePlay.jsx +++ b/src/common/createplay/CreatePlay.jsx @@ -10,26 +10,34 @@ import "./create-play.scss"; import Loader from "common/spinner/spinner"; import { Plays } from "common/services/plays"; import { useNavigate } from "react-router-dom"; -import { useSearchParams } from "react-router-dom"; -import { ReactComponent as NotAllowedImage } from "../../images/img-403.svg" +import { ReactComponent as NotAllowedImage } from "../../images/img-403.svg"; const NoCreationInProdScreen = () => { - return
-
- -
+ return ( +
+
+ +
-
- You can't create plays in production -
- read this for more details +
+ You can't create plays in production +
+ + read this + {" "} + for more details +
-
-} + ); +}; const CreatePlay = () => { const { isAuthenticated, isLoading } = useAuthenticationStatus(); - const [searchParams] = useSearchParams(); const userData = useUserData(); let navigate = useNavigate(); @@ -102,7 +110,7 @@ const CreatePlay = () => { }; if (process.env.NODE_ENV !== "development") { - return + return ; } if (isLoading || isDataLoading) { @@ -115,7 +123,11 @@ const CreatePlay = () => { } if (!isAuthenticated) { - window.location = NHOST.AUTH_URL(`http://localhost:${process.env.RAECT_APP_DEV_PORT ?? '3000'}/plays/create`); + window.location = NHOST.AUTH_URL( + `http://localhost:${ + process.env.RAECT_APP_DEV_PORT ?? "3000" + }/plays/create` + ); return null; } else { initializeData(); diff --git a/src/common/footer/ExtendedFooter.jsx b/src/common/footer/ExtendedFooter.jsx index b765d26b84..a2819a6a8e 100644 --- a/src/common/footer/ExtendedFooter.jsx +++ b/src/common/footer/ExtendedFooter.jsx @@ -11,20 +11,20 @@ const ExtendedFooter = () => { const { showShareModal, setShowShareModal } = useContext(SearchContext); return ( -
-
-
+
+
+

- ReactPlay - Logo of ReactPlay + ReactPlay + Logo of ReactPlay

-

+

An open-source project made with ❤️ by{" "} Tapas Adhikary {" "} @@ -32,49 +32,49 @@ const ExtendedFooter = () => {

Connect with us -

-
-

About

-

+

+

About

+

ReactPlay is an opensource platform that helps you learn, create and share ReactJS projects with the developer community.

-
+
- - Create + + Create - - - Browse + + + Browse
-

+

Not sure how to get started?
We have a lot of ideas for you to get started. -

- - Get started +
+ + Get started
- -
-

Show love

-

+

+

Show love

+

Enjoying ReactPlay? Please help us spreading the word You can share about ReactPlay on any of your favorite social media platforms.

-

+

Your support means a lot to us. Want to be our Sponsor and support us?

- Sponsor ReactPlay + Sponsor ReactPlay
diff --git a/src/common/footer/Footer.jsx b/src/common/footer/Footer.jsx index b7a65fb540..845f284f7a 100644 --- a/src/common/footer/Footer.jsx +++ b/src/common/footer/Footer.jsx @@ -1,13 +1,17 @@ import { Link } from "react-router-dom"; -const Footer = () => { return ( -