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 Jun 20, 2024
1 parent 75fbc69 commit aeb6161
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 aeb6161

Please sign in to comment.