Skip to content

Commit fc7b3aa

Browse files
committed
props fix
1 parent 3129926 commit fc7b3aa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Modal/Modal.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const classes = {
88
}
99
export const ModalContext = React.createContext()
1010
function 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

4646
Modal.propTypes = {
47-
componentProps: PropTypes.object,
48-
index: PropTypes.number
47+
component: PropTypes.func,
48+
componentProps: PropTypes.object
4949
}
5050

5151
export default Modal

src/Modal/ModalCardEdit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function ModalCardEdit(props) {
9191
}
9292

9393
ModalCardEdit.propTypes = {
94-
card: PropTypes.object.isRequired,
94+
card: PropTypes.object,
9595
index: PropTypes.number
9696
}
9797

0 commit comments

Comments
 (0)