-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refector: recipe 에서 assignInlineVars 사용하는 것으로 변경
- Loading branch information
Showing
3 changed files
with
37 additions
and
27 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 |
---|---|---|
@@ -1,5 +1,25 @@ | ||
import MoreModal from "@shared/component/MoreModal/MoreModal.tsx"; | ||
import useMoreModal from "@shared/hook/useMoreModal"; | ||
|
||
const PostDetail = () => { | ||
return <div></div>; | ||
const { isOpen, openModal, closeModal, toggleModal } = useMoreModal(); | ||
|
||
const handleDelete = () => { | ||
alert("삭제되었습니다!"); | ||
toggleModal(); | ||
}; | ||
|
||
return ( | ||
<div> | ||
<MoreModal | ||
isOpen={isOpen} | ||
onToggleModal={toggleModal} | ||
onDelete={handleDelete} | ||
iconSize={2} | ||
onEdit={() => alert("수정하기")} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PostDetail; |
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
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