Skip to content

Updated Forms using MUI #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 12, 2024
Merged

Updated Forms using MUI #4

merged 4 commits into from
Apr 12, 2024

Conversation

Jgarnes
Copy link
Collaborator

@Jgarnes Jgarnes commented Mar 29, 2024

This push request consists of updated Sign In, Sign Up components. Also updated the forms to clear after the submission button is pressed

Copy link
Owner

@chrisuribe chrisuribe left a comment

Choose a reason for hiding this comment

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

This looks and works great!!! I made a few comments that will really get us closer to wrapping this part up.

form.reset();
const errorCode = error.code;
const errorMessage = error.message;
console.error('Error loggin in:', errorCode, errorMessage);
Copy link
Owner

Choose a reason for hiding this comment

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

Instead of a console.error, lets let the user know there was an issues logging in by using a better notification (Called a snackbar in React's MUI, but more commonly a 'toast notification').
The docs can be found here with examples:
https://mui.com/material-ui/react-snackbar/

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

toast added

@chrisuribe chrisuribe merged commit 33fe0f7 into chrisuribe:main Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants