@@ -6,7 +6,7 @@ import styles from './ConfirmationModal.module.scss'
66import OutlineButton from '../Buttons/OutlineButton'
77import PrimaryButton from '../Buttons/PrimaryButton'
88
9- const AlertModal = ( { title, message, theme, onClose, closeLink, okLink, closeText, okText } ) => (
9+ const AlertModal = ( { title, message, theme, onClose, closeLink, okLink, closeText, okText, onOk } ) => (
1010 < Modal theme = { theme } onCancel = { onClose } >
1111 < div className = { cn ( styles . contentContainer , styles . confirm ) } >
1212 < div className = { styles . title } > { title } </ div >
@@ -28,6 +28,7 @@ const AlertModal = ({ title, message, theme, onClose, closeLink, okLink, closeTe
2828 text = { okText }
2929 type = { 'success' }
3030 link = { okLink }
31+ onClick = { okLink ? ( ) => { } : onOk }
3132 />
3233 </ div >
3334 ) }
@@ -41,6 +42,7 @@ AlertModal.propTypes = {
4142 message : PropTypes . string ,
4243 theme : PropTypes . shape ( ) ,
4344 onClose : PropTypes . func ,
45+ onOk : PropTypes . func ,
4446 closeText : PropTypes . string ,
4547 closeLink : PropTypes . string ,
4648 okText : PropTypes . string ,
0 commit comments