Closed JohnHKoh closed 3 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/downforacross/downforacross.com/8qQxj3M5MyBCKk5uayoDm5eJPrP8
✅ Preview: https://downforacrossc-git-fork-johnhkoh-johnhkoh-upload-modal-d-224569.vercel.app
Uploading a puzzle should appropriately show the right modals on successful validation, where you can choose unlisted or public. Also refreshes the puzzles list upon confirming a public upload. Also some prettier CSS with the drag and drop.
After selecting a file to upload:
After selecting the upload button:
After choosing unlisted and selecting the upload button:
By using the @sweetalert/with-react package, I was also able to remove some helper functions from the modals and allow for more extensibility and customization to the modals.