-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: disable add new folder button when isLoading (#3734)
* ✨ (index.tsx): Add ShadTooltip component to provide tooltips for folder buttons for better user experience 📝 (index.tsx): Import useIsFetching from "@tanstack/react-query" to check if there are ongoing data fetching operations before enabling folder buttons * 🔧 (index.tsx): add isPending variable to usePostFolders hook to track loading state for adding folders 🔧 (index.tsx): update disabled attribute in add and upload folder buttons to include isPending variable to prevent multiple submissions --------- Co-authored-by: anovazzi1 <otavio2204@gmail.com>
- Loading branch information
1 parent
6f8beb8
commit af99b4c
Showing
1 changed file
with
34 additions
and
19 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