-
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.
Browse files
Browse the repository at this point in the history
Feat: 짤 이미지 신고 확인 모달 UI 구현 Modify: ModalHeader 컴포넌트의 children Props를 옵셔널로 변경 Refactor: hasCloseButton props에서 true 값 삭제 Refactor: AlertTrigangle에 aria-label 추가
- Loading branch information
Showing
4 changed files
with
66 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
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,51 @@ | ||
import { AlertTriangle, Siren } from "lucide-react"; | ||
import Modal from "../common/modals/Modal"; | ||
|
||
interface Props { | ||
isOpen: boolean; | ||
onClose: () => void; | ||
onReport: () => void; | ||
} | ||
|
||
const ReportConfirmModal = ({ isOpen, onClose, onReport }: Props) => { | ||
const handleClickReportButton = () => { | ||
onReport(); | ||
onClose(); | ||
}; | ||
|
||
return ( | ||
<Modal isOpen={isOpen} onClose={onClose} className="p-40pxr"> | ||
<Modal.Header hasCloseButton /> | ||
<Modal.Body> | ||
<div className="flex flex-col items-center"> | ||
<AlertTriangle color="#ED0000" strokeWidth="1.2" size="84" aria-label="경고삼각형" /> | ||
<div className="mt-4 flex flex-col items-center gap-1"> | ||
<div className="text-xl font-extrabold sm:text-2xl"> | ||
정말로 이 사진을 신고하시겠습니까? | ||
</div> | ||
<div className="font-bold text-text-secondary"> | ||
신고된 사진은 기준에 맞게 조치됩니다. | ||
</div> | ||
</div> | ||
<div className="mt-6 flex items-center gap-3 text-lg font-bold"> | ||
<button | ||
className="h-12 w-32 rounded-[90px] text-text-secondary outline outline-offset-2 outline-transparent transition-[outline] hover:outline-primary" | ||
onClick={onClose} | ||
> | ||
취소 | ||
</button> | ||
<button | ||
className="flex h-12 w-32 items-center justify-evenly rounded-90pxr bg-delete text-white outline outline-offset-2 outline-transparent transition-[outline_background-color] hover:outline-delete" | ||
onClick={handleClickReportButton} | ||
> | ||
<Siren color="#FFFF" strokeWidth={2} aria-label="신고하기" /> | ||
신고하기 | ||
</button> | ||
</div> | ||
</div> | ||
</Modal.Body> | ||
</Modal> | ||
); | ||
}; | ||
|
||
export default ReportConfirmModal; |
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