Skip to content

Commit

Permalink
[docs] Fix prop-type warning (#1916)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jun 16, 2021
1 parent 1ff0840 commit 4194e2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ EditToolbar.propTypes = {
apiRef: PropTypes.shape({
current: PropTypes.object.isRequired,
}).isRequired,
selectedCellParams: PropTypes.any.isRequired,
selectedCellParams: PropTypes.any,
setSelectedCellParams: PropTypes.func.isRequired,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const useStyles = makeStyles(

interface EditToolbarProps {
apiRef: GridApiRef;
selectedCellParams?: any;
setSelectedCellParams: (value: any) => void;
selectedCellParams: any;
}

function EditToolbar(props: EditToolbarProps) {
Expand Down

0 comments on commit 4194e2c

Please sign in to comment.