Skip to content

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
모달 닫는 버튼 추가
  • Loading branch information
Sombian authored May 15, 2024
1 parent 509649c commit 4611634
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
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

0 comments on commit 4611634

Please sign in to comment.