@@ -21,7 +21,7 @@ const Confirmation = ({show, proceed, dismiss, cancel, confirmation, title,
2121 { header }
2222 < Modal . Body > { confirmation } </ Modal . Body >
2323 < Modal . Footer >
24- < Button
24+ < Button
2525 variant = { cancelButtonStyle }
2626 onClick = { ( ) => proceed ( false ) }
2727 >
@@ -44,8 +44,10 @@ Confirmation.propTypes = {
4444 confirmation : PropTypes . string , // arguments of your confirm function
4545 okText : PropTypes . string ,
4646 cancelText : PropTypes . string ,
47- okButtonStyle : PropTypes . oneOf ( [ 'primary' , 'secondary' , 'success' , 'danger' , 'warning' , 'info' , 'light' , 'dark' , 'link' ] ) ,
48- cancelButtonStyle : PropTypes . oneOf ( [ 'primary' , 'secondary' , 'success' , 'danger' , 'warning' , 'info' , 'light' , 'dark' , 'link' ] ) ,
47+ okButtonStyle : PropTypes . oneOf ( [ 'primary' , 'secondary' , 'success' , 'danger' ,
48+ 'warning' , 'info' , 'light' , 'dark' , 'link' ] ) ,
49+ cancelButtonStyle : PropTypes . oneOf ( [ 'primary' , 'secondary' , 'success' , 'danger' ,
50+ 'warning' , 'info' , 'light' , 'dark' , 'link' ] ) ,
4951 show : PropTypes . bool , // from confirmable.
5052 proceed : PropTypes . func , // from confirmable.
5153 cancel : PropTypes . func , // from confirmable.
@@ -107,7 +109,8 @@ Alert.propTypes = {
107109 title : PropTypes . string ,
108110 confirmation : PropTypes . string , // arguments of your confirm function
109111 okText : PropTypes . string ,
110- okButtonStyle : PropTypes . oneOf ( [ 'primary' , 'secondary' , 'success' , 'danger' , 'warning' , 'info' , 'light' , 'dark' , 'link' ] ) ,
112+ okButtonStyle : PropTypes . oneOf ( [ 'primary' , 'secondary' , 'success' , 'danger' ,
113+ 'warning' , 'info' , 'light' , 'dark' , 'link' ] ) ,
111114 show : PropTypes . bool , // from confirmable.
112115 proceed : PropTypes . func , // from confirmable.
113116 cancel : PropTypes . func , // from confirmable.
0 commit comments