JoarHansson/space-images-app
Replace window.confirm method with custom modal
Offen
#13 geöffnet am 11.09.2024
beginner friendlydesignenhancementgood first issuehacktoberfesthelp wanted
Repository-Metriken
- Stars
- (2 Sterne)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
For purely aesthetic reasons the window.confirm method could be swapped out to something that fits the theme better.
- Make a new component called "Modal" / "ConfirmationModal" or something similar, following the structure of the other components in the project.
- Make sure the logic found at
src/pages/Likes/Likes.jsx:26-31is handled by the new component instead. src/components/InfoPopup/InfoPopup.jsx(seen in videoclip below) and its css module file can probably be reused to a large extent here.
https://github.com/user-attachments/assets/06703a0a-d1a3-45e6-9e2c-69d9d48bf6ec