spacedrive
spacedrive copied to clipboard
[Eng 200] enter on keyboard doesn't cause modal to submit
This PR enables submission modals by using the "Enter Key". It also rerun the library queries when creating/removing libraries
Closes #332
@MohammedBajuaifer is attempting to deploy a commit to the Spacedrive Team on Vercel.
A member of the Team first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
spacedrive-web | ✅ Ready (Inspect) | Visit Preview | Sep 8, 2022 at 8:15PM (UTC) |
I think we should get the queryClient
from the hook. Eg. const queryClient = useQueryClient();
instead of importing it directly.
@oscartbeaumont updated PR
@jamiepine @oscartbeaumont could this PR be rechecked.
This looks like a better approach to what we have on main as with this we can control if the form can be submitted or not. (e.g. creating a library with no name)