Skip to content

FROG-25: Disable Register/Login button when credentials are invalid#18

Open
devkav wants to merge 4 commits into
mainfrom
frog-25
Open

FROG-25: Disable Register/Login button when credentials are invalid#18
devkav wants to merge 4 commits into
mainfrom
frog-25

Conversation

@devkav

@devkav devkav commented Apr 10, 2023

Copy link
Copy Markdown
Member

Description

Disabled buttons on Login and Register page when credentials are invalid.

Ticket

FROG-25 - LINK

@devkav devkav requested a review from NicholasDawson as a code owner April 10, 2023 18:11
@devkav devkav added enhancement New feature or request polish enhancing an existing feature and removed enhancement New feature or request labels Apr 10, 2023
Comment thread src/pages/Login.tsx
<Button
onClick={login}
label="Log in"
disabled={password.length == 0 || email.length == 0}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only notable change in this file. Rest is prettier.

Comment thread src/pages/Register.tsx
<Button
onClick={register}
label="Register"
disabled={!passwordValid || !emailValid}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only notable change in this file. Rest is prettier.

@devkav devkav added the prettier Changes to prettier config or includes many changes due to prettier label Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

polish enhancing an existing feature prettier Changes to prettier config or includes many changes due to prettier

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant