File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const classes = {
88}
99export const ModalContext = React . createContext ( )
1010function Modal ( props ) {
11-
11+
1212 const [ isOpen , setOpenState ] = React . useState ( false )
1313 const Component = props . component
1414 const ComponentProps = props . componentProps
@@ -44,8 +44,8 @@ function Modal(props) {
4444}
4545
4646Modal . propTypes = {
47- componentProps : PropTypes . object ,
48- index : PropTypes . number
47+ component : PropTypes . func ,
48+ componentProps : PropTypes . object
4949}
5050
5151export default Modal
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ function ModalCardEdit(props) {
9191}
9292
9393ModalCardEdit . propTypes = {
94- card : PropTypes . object . isRequired ,
94+ card : PropTypes . object ,
9595 index : PropTypes . number
9696}
9797
You can’t perform that action at this time.
0 commit comments