-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from "react"; | ||
import ModalWrap from "./ModalWrap.tsx"; | ||
|
||
//공유 확인 모달 | ||
const ShareModal: React.FC<{ closeModal: () => void }> = ({ closeModal }) => { | ||
const closeAndStay = () => { | ||
closeModal(); | ||
document.body.style.overflow = ""; | ||
}; | ||
|
||
return ( | ||
<ModalWrap> | ||
<h1>회고의 URL이 복사되었어요! </h1> | ||
<p>URL을 공유해보세요.</p> | ||
<div className="btn_container"> | ||
<button className="main_btn" onClick={closeAndStay}> | ||
확인 | ||
</button> | ||
</div> | ||
</ModalWrap> | ||
); | ||
}; | ||
|
||
export default ShareModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters