From 45f997bb5d71d4601fee7685cd514dcf345970c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ademi=CC=81lson=20F=2E=20Tonato?= Date: Mon, 10 Oct 2022 10:51:45 +0100 Subject: [PATCH] refactor: update HTML (React) warnings --- frontend/src/components/Account/Account.js | 8 ++++---- .../ForgotPassword/ForgotPassword.js | 6 +++--- frontend/src/components/Login/Login.js | 2 +- frontend/src/components/Notes/MarkdownNotes.js | 4 ++-- frontend/src/components/Notes/Notes.js | 18 +++++++++--------- .../components/ResetPassword/ResetPassword.js | 4 ++-- frontend/src/components/Sidenav/Sidenav.js | 2 +- frontend/src/components/Signup/Signup.js | 2 +- 8 files changed, 23 insertions(+), 23 deletions(-) diff --git a/frontend/src/components/Account/Account.js b/frontend/src/components/Account/Account.js index a700308..7678aa0 100644 --- a/frontend/src/components/Account/Account.js +++ b/frontend/src/components/Account/Account.js @@ -118,7 +118,7 @@ const Account = () => { onSubmit={changePassword} id="notes-form" action="#" - enctype="multipart/form-data" + encType="multipart/form-data" >
@@ -126,7 +126,7 @@ const Account = () => { id="modal-current-password-input" type="password" name="title" - spellcheck="false" + spellCheck="false" onChange={(e) => setCurrentPassword(e.target.value)} />
@@ -137,7 +137,7 @@ const Account = () => { id="modal-new-password-input" type="password" name="title" - spellcheck="false" + spellCheck="false" onChange={(e) => setNewPassword(e.target.value)} /> @@ -148,7 +148,7 @@ const Account = () => { id="modal-confirm-password-input" type="password" name="title" - spellcheck="false" + spellCheck="false" onChange={(e) => setConfirmPassword(e.target.value)} /> diff --git a/frontend/src/components/ForgotPassword/ForgotPassword.js b/frontend/src/components/ForgotPassword/ForgotPassword.js index d32e45a..dd2b179 100644 --- a/frontend/src/components/ForgotPassword/ForgotPassword.js +++ b/frontend/src/components/ForgotPassword/ForgotPassword.js @@ -35,7 +35,7 @@ const ForgotPassword = () => { Noteslify | Forgot Password -
+

Forgot Password?



Please enter your registered email to receive your forgot Password Link

@@ -46,8 +46,8 @@ const ForgotPassword = () => { setEmail(e.target.value)} required="required" placeholder="Email Address">
- {!isLoading && } - {isLoading && } + {!isLoading && } + {isLoading && }
diff --git a/frontend/src/components/Login/Login.js b/frontend/src/components/Login/Login.js index 371d7a9..44466a7 100644 --- a/frontend/src/components/Login/Login.js +++ b/frontend/src/components/Login/Login.js @@ -122,7 +122,7 @@ const Login = () => { Forgot Password? {!isLoading && } - {isLoading && } + {isLoading && }
Don't have an account ? Sign up here diff --git a/frontend/src/components/Notes/MarkdownNotes.js b/frontend/src/components/Notes/MarkdownNotes.js index bef32a1..9467a99 100644 --- a/frontend/src/components/Notes/MarkdownNotes.js +++ b/frontend/src/components/Notes/MarkdownNotes.js @@ -16,10 +16,10 @@ export default function MarkdownNotes(props) { return (
-
+
- props.setAddNoteTitle(e.target.value)} type="text" name="title" spellcheck="false"/> + props.setAddNoteTitle(e.target.value)} type="text" name="title" spellCheck="false"/>
props.setAddNoteDescription(e)} /> diff --git a/frontend/src/components/Notes/Notes.js b/frontend/src/components/Notes/Notes.js index bd340a6..f5ed448 100644 --- a/frontend/src/components/Notes/Notes.js +++ b/frontend/src/components/Notes/Notes.js @@ -237,17 +237,17 @@ const Notes = () => {

Add a new Note

- +
- +
{/* */} - setAddNoteTitle(e.target.value)} type="text" name="title" spellcheck="false"/> + setAddNoteTitle(e.target.value)} type="text" name="title" spellCheck="false"/>
{/* */} - +
@@ -272,18 +272,18 @@ const Notes = () => {

Edit Note

- +
-
+
{/* */} - setAddNoteTitle(e.target.value)} id='modal-title-input' type="text" name="title" spellcheck="false"/> + setAddNoteTitle(e.target.value)} id='modal-title-input' type="text" name="title" spellCheck="false"/>
{/* */} - +
@@ -311,7 +311,7 @@ const Notes = () => { -
+
diff --git a/frontend/src/components/ResetPassword/ResetPassword.js b/frontend/src/components/ResetPassword/ResetPassword.js index d98262e..bc126f6 100644 --- a/frontend/src/components/ResetPassword/ResetPassword.js +++ b/frontend/src/components/ResetPassword/ResetPassword.js @@ -59,7 +59,7 @@ const ResetPassword = () => { return (
- {isValidToken &&
+ {isValidToken &&

Set New Password



Your Email Address: {email}

@@ -70,7 +70,7 @@ const ResetPassword = () => { setPassword(e.target.value)} required="required" placeholder="Enter Your New Password">
- +
diff --git a/frontend/src/components/Sidenav/Sidenav.js b/frontend/src/components/Sidenav/Sidenav.js index e701888..071fe3f 100644 --- a/frontend/src/components/Sidenav/Sidenav.js +++ b/frontend/src/components/Sidenav/Sidenav.js @@ -105,7 +105,7 @@ const Sidenav = () => {
  • - + Soon..
  • diff --git a/frontend/src/components/Signup/Signup.js b/frontend/src/components/Signup/Signup.js index 485bb6e..347163a 100644 --- a/frontend/src/components/Signup/Signup.js +++ b/frontend/src/components/Signup/Signup.js @@ -122,7 +122,7 @@ const Signup = () => {


    {!isLoading && } - {isLoading && } + {isLoading && }
    Already have an account ? Login here