Skip to content

Commit

Permalink
fix: remove required props and add defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Jul 2, 2024
1 parent aba2582 commit 08b5000
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,13 @@ export const DashboardPluginWrapper = ({
}

DashboardPluginWrapper.defaultProps = {
isParentCached: false,
onInstallationStatusChange: Function.prototype,
}

DashboardPluginWrapper.propTypes = {
cacheId: PropTypes.string.isRequired,
children: PropTypes.func.isRequired,
isParentCached: PropTypes.bool.isRequired,
cacheId: PropTypes.string,
children: PropTypes.func,
isParentCached: PropTypes.bool,
onInstallationStatusChange: PropTypes.func,
}

0 comments on commit 08b5000

Please sign in to comment.