-
Notifications
You must be signed in to change notification settings - Fork 793
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
fix: Single State for Button Disable and Loading #713
Conversation
@mohdjami is attempting to deploy a commit to the mftsio Team on Vercel. A member of the Team first needs to authorize it. |
All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
@mohdjami |
Sure will do that, and try. |
final.demo.mp4I tested with email and google login. It works fine, Let me know if you find anything wrong. My goal in this PR was not to change the existing error handling but just to fix the loading and disabling. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@mfts Let me know if I need to make any changes. |
@mfts Thanks for addressing all the issues. Let me know if I missed anything. |
Awarding mohdjami: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/mohdjami |
fixes #711
Description
Created a single state for both loading and disabling buttons.
This code not only adds a single state to the Login page but also reduces the use of separate loaders without affecting any error handling in the form. No need to maintain separate states for each button.
Used states before changes
State after changes
Example button before changes
Example button after changes
Preview
fixed.loading.state.mp4
This improves user experience by preventing multiple actions and maintaining a clear visual indication of the active button.
Final:
final.demo.mp4