Skip to content

Commit

Permalink
fix(Datatable): add onColumnVisibilityChange to proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
julesbarr committed Jul 17, 2023
1 parent 9b7234e commit 374cfe9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Datatable/Datatable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ Datatable.propTypes = {
controlsConfig: PropTypes.exact({
onControlToggle: PropTypes.func,
onCancelLoading: PropTypes.func,
onColumnVisibilityChange: PropTypes.func,
hasSearch: PropTypes.bool,
searchConfig: PropTypes.exact({
placeholder: PropTypes.string,
Expand Down
1 change: 1 addition & 0 deletions src/components/Datatable/mocks/controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ export const controlsConfig = {
onSearch: action('onSearch'),
onClear: action('onClear'),
},
onColumnVisibilityChange: action('columnVisibilityChange'),
};

0 comments on commit 374cfe9

Please sign in to comment.