@@ -10,7 +10,7 @@ import DialogContent from '@material-ui/core/DialogContent';
1010import DialogContentText from '@material-ui/core/DialogContentText' ;
1111import DialogActions from '@material-ui/core/DialogActions' ;
1212
13- function RemoveAddButton ( { classes, label, type = 'add' , onClick } ) {
13+ export const RemoveAddButton = ( { classes, label, type = 'add' , onClick } ) => {
1414 const Tag = type === 'add' ? AddCircleIcon : RemoveCircleIcon ;
1515 return (
1616 < Button color = "primary" size = "small" className = { classes . root } onClick = { onClick } >
@@ -61,11 +61,11 @@ export const ConfimationDialog = ({ content, cancel, title, ok, open, onOk, onCa
6161) ;
6262
6363ConfimationDialog . propTypes = {
64- content : PropTypes . string ,
65- title : PropTypes . string ,
66- cancel : PropTypes . string ,
67- ok : PropTypes . string ,
68- open : PropTypes . bool ,
69- onCancel : PropTypes . func ,
70- onOk : PropTypes . func ,
64+ content : PropTypes . string . isRequired ,
65+ title : PropTypes . string . isRequired ,
66+ cancel : PropTypes . string . isRequired ,
67+ ok : PropTypes . string . isRequired ,
68+ open : PropTypes . bool . isRequired ,
69+ onCancel : PropTypes . func . isRequired ,
70+ onOk : PropTypes . func . isRequired ,
7171} ;
0 commit comments