#1017: fix: Need improvement in auth modal
Issue #1017 by Latish705
fix: Need improvement in auth modal
Pull Request Details
Description
improved the performance of auth modal which was starting first time not in shape by using callback hook of react which Memoizing these functions can help avoid unnecessary re-renders and side effects.
Fixes
fixes - #1005
Type of PR
- [x] Bug fix
- [ ] Feature enhancement
- [ ] Documentation update
- [ ] Refactoring
- [ ] Other (specify): ___
Summary
Screenshots (if applicable)
https://github.com/digitomize/digitomize/assets/104522651/1f86453a-6ba7-4b73-b687-eee2c0e3a78a
Checklist
- [x] I have read and followed the Pull Requests and Issues guidelines.
- [x] The code has been properly linted and formatted using
npm run lint:fix
and npm run format:fix
.
- [x] I have tested the changes thoroughly before submitting this pull request.
- [x] I have provided relevant issue numbers, snapshots, and videos after making the changes.
- [x] I have not borrowed code without disclosing it, if applicable.
- [x] This pull request is not a Work In Progress (WIP), and only completed and tested changes are included.
- [x] I have tested these changes locally.
- [x] My code follows the project's style guidelines.
- [x] I have updated the documentation accordingly.
- [x] This PR has a corresponding issue in the issue tracker.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
- Refactor
- Improved performance and efficiency of the authentication modal by optimizing event handlers and state updates.
- Enhanced modal interaction by ensuring it closes when clicking outside of it.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->0 Replies