From 1bebc4423e6d01c35f082579b250a5ce8e454daf Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Fri, 7 Jan 2022 20:10:50 -0600 Subject: [PATCH] Expand PropTypes for dataTypeKey (#994) --- packages/redux-devtools-inspector-monitor/src/tabs/DiffTab.tsx | 2 +- packages/redux-devtools-inspector-monitor/src/tabs/StateTab.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/redux-devtools-inspector-monitor/src/tabs/DiffTab.tsx b/packages/redux-devtools-inspector-monitor/src/tabs/DiffTab.tsx index 34dded56..9667a695 100644 --- a/packages/redux-devtools-inspector-monitor/src/tabs/DiffTab.tsx +++ b/packages/redux-devtools-inspector-monitor/src/tabs/DiffTab.tsx @@ -35,7 +35,7 @@ DiffTab.propTypes = { invertTheme: PropTypes.bool.isRequired, labelRenderer: PropTypes.func.isRequired, isWideLayout: PropTypes.bool.isRequired, - dataTypeKey: PropTypes.string, + dataTypeKey: PropTypes.oneOfType([PropTypes.string, PropTypes.symbol]), }; export default DiffTab; diff --git a/packages/redux-devtools-inspector-monitor/src/tabs/StateTab.tsx b/packages/redux-devtools-inspector-monitor/src/tabs/StateTab.tsx index 4e60d016..0522dfb9 100644 --- a/packages/redux-devtools-inspector-monitor/src/tabs/StateTab.tsx +++ b/packages/redux-devtools-inspector-monitor/src/tabs/StateTab.tsx @@ -35,7 +35,7 @@ StateTab.propTypes = { base16Theme: PropTypes.any.isRequired, invertTheme: PropTypes.bool.isRequired, labelRenderer: PropTypes.func.isRequired, - dataTypeKey: PropTypes.string, + dataTypeKey: PropTypes.oneOfType([PropTypes.string, PropTypes.symbol]), isWideLayout: PropTypes.bool.isRequired, };