The current file sharing modal could be more user-friendly. Right now, the sharing code appears a bit later after the modal shows, which might confuse the user. Here's what needs to be done to improve this:
Show a spinner while waiting for the sharing code to be generated.
Hide the "Copy" button during this time.
Once the sharing code is available, hide the spinner and show the "Copy" button.
Also, the button labeled "Complete Sharing" only closes the modal and doesn't actually complete any sharing process. I suggest renaming it to just "OK" for clarity.
The current file sharing modal could be more user-friendly. Right now, the sharing code appears a bit later after the modal shows, which might confuse the user. Here's what needs to be done to improve this:
Also, the button labeled "Complete Sharing" only closes the modal and doesn't actually complete any sharing process. I suggest renaming it to just "OK" for clarity.
https://github.com/fairDataSociety/fairdrive-theapp/assets/1595061/888fee02-346d-4278-96a4-15804062fe85