Skip to content

Commit 437c834

Browse files
committed
style: Modal String 추가 및 수정
1 parent 0511106 commit 437c834

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • gamgyul-front/src/components/common/Modal

‎gamgyul-front/src/components/common/Modal/index.jsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ const Modal = ({ onClose, onClick, type }) => {
2828
<p>{MODAL_TEXT[language][`${type}_SUB`]}</p>
2929
</ModalLimitSection>
3030
)}
31-
{type === "DELETE" && <ModalDeleteH2>{MODAL_TEXT[language].ROUTE_DELETE_MESSAGE}</ModalDeleteH2>}
31+
{["ATRCT_DELETE", "ROUTE_DELETE"].includes(type) && (
32+
<ModalDeleteH2>{MODAL_TEXT[language][`${type}_MESSAGE`]}</ModalDeleteH2>
33+
)}
3234
{type === "SAVE" && (
3335
<ModalRoutesSection>
3436
<h2>{MODAL_TEXT[language].ROUTE_NAME}</h2>

0 commit comments

Comments
 (0)