From 08b5000ad9bb4761f8be441222dc7e9dd4cea356 Mon Sep 17 00:00:00 2001 From: Edoardo Sabadelli Date: Thu, 20 Jun 2024 10:06:53 +0200 Subject: [PATCH] fix: remove required props and add defaults --- .../DashboardPluginWrapper/DashboardPluginWrapper.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/DashboardPluginWrapper/DashboardPluginWrapper.js b/src/components/DashboardPluginWrapper/DashboardPluginWrapper.js index 52796cbcf..74c611161 100644 --- a/src/components/DashboardPluginWrapper/DashboardPluginWrapper.js +++ b/src/components/DashboardPluginWrapper/DashboardPluginWrapper.js @@ -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, }