-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[front/components] - refactor: streamline handling of query parameter…
…s in modals - Replaced `useRouter` with `useQueryParams` hook for consistent query parameter management across modals - Removed `useState` and `useEffect` hooks in favor of direct query parameter access, simplifying state management - Added `onClose` handler to clean up query parameters when the document modal is closed - Ensured proper handling of modal open state based on the query parameters to synchronize the UI with the URL state
- Loading branch information
1 parent
cf4f224
commit fe5ac53
Showing
2 changed files
with
24 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters