sanguu516(박상현)
11 months ago
2 changed files with 67 additions and 8 deletions
@ -0,0 +1,44 @@ |
|||||||
|
import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'; |
||||||
|
|
||||||
|
export const LaancModal = props => { |
||||||
|
return ( |
||||||
|
<div className='vertically-centered-modal'> |
||||||
|
<Modal |
||||||
|
isOpen={props.modal.isOpen} |
||||||
|
toggle={() => |
||||||
|
props.setModal({ ...props.modal, isOpen: !props.modal.isOpen }) |
||||||
|
} |
||||||
|
modalClassName='modal-danger' |
||||||
|
className='modal-dialog-centered' |
||||||
|
> |
||||||
|
<ModalHeader |
||||||
|
toggle={() => |
||||||
|
props.setModal({ ...props.modal, isOpen: !props.modal.isOpen }) |
||||||
|
} |
||||||
|
> |
||||||
|
{props.modal.title} |
||||||
|
</ModalHeader> |
||||||
|
<ModalBody>{props.modal.desc}</ModalBody> |
||||||
|
<ModalFooter> |
||||||
|
<Button |
||||||
|
color='danger' |
||||||
|
onClick={() => |
||||||
|
props.setModal({ ...props.modal, isOpen: !props.modal.isOpen }) |
||||||
|
} |
||||||
|
> |
||||||
|
취소 |
||||||
|
</Button> |
||||||
|
<Button |
||||||
|
onClick={() => |
||||||
|
props.setModal({ ...props.modal, isOpen: !props.modal.isOpen }) |
||||||
|
} |
||||||
|
> |
||||||
|
{props.modal.type === 'fltMethod' |
||||||
|
? '처리부서안내 바로가기' |
||||||
|
: '드론원스톱 바로가기'} |
||||||
|
</Button> |
||||||
|
</ModalFooter> |
||||||
|
</Modal> |
||||||
|
</div> |
||||||
|
); |
||||||
|
}; |
Loading…
Reference in new issue