Skip to content

Commit

Permalink
πŸ”¨ : κ²Œμž„ μ’…λ£Œ μ‹œ κ²Œμž„ κ²°κ³Ό ν…Œμ΄λΈ”μ— x ν‘œμ‹œ μΆ”κ°€
Browse files Browse the repository at this point in the history
  • Loading branch information
jyh0521 committed Nov 25, 2021
1 parent a747459 commit 9149b91
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
11 changes: 10 additions & 1 deletion front-end/src/components/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,16 @@ const Modal = forwardRef(
</button>
</div>
)}
{type === 'rank' && <div className="modal__title">[{title}]</div>}
{type === 'rank' && (
<div className="modal__title">
<div>
[{title}]
<button className="close__btn" onClick={close}>
X
</button>
</div>
</div>
)}
{children}
</div>
</div>
Expand Down
7 changes: 7 additions & 0 deletions front-end/src/pages/GamePage/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,12 @@
color: #1C2137;
}
}

& .close__btn {
cursor: pointer;
left: 140px;
top: -13px;
position: relative;
}
}
}

0 comments on commit 9149b91

Please sign in to comment.