Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Donate; add modal close button #17

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/app/pages/ListPage/widgets/Donate/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { countdown } from "@/common/utilities/date";
import credit_png from "@/common/assets/images/credit.png";
import useLocalStorage from "@/common/hooks/useLocalStorage";
import API from "@/common/api";
import ModalCancelIcon from "@/common/assets/icons/ModalCancelIcon";

const LOCALE = {
year: "년",
Expand Down Expand Up @@ -136,7 +137,10 @@ Donate.Modal = function add(

return (
<section data-widget="Donate.Modal">
<div className="heading">후원하기</div>
<div className="heading">
후원하기
<ModalCancelIcon onClick={() => Modal.instance.close()}></ModalCancelIcon>
</div>
<div className="portrait" onClick={() => set_credit(credit + 100)}>
<img src={props.donation.idol.profilePicture}></img>
<div className="title">{props.donation.title}</div>
Expand Down
2 changes: 2 additions & 0 deletions src/app/pages/ListPage/widgets/Donate/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@
font-weight: 600;
line-height: 21.48px;
margin-bottom: 24px;
display: flex;
justify-content: space-between;
}
> .portrait {
width: 160px;
Expand Down
Loading