JoarHansson/space-images-app

Replace window.confirm method with custom modal

开放

#13 创建于 2024年9月11日

 (3 条评论) (0 个反应) (1 位负责人)JavaScript (2 个派生)auto 404
beginner friendlydesignenhancementgood first issuehacktoberfesthelp wanted

仓库指标

星标
 (2 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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 atsrc/pages/Likes/Likes.jsx:26-31 is 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

贡献者指南