Expand PropTypes for dataTypeKey (#994)

This commit is contained in:
Nathan Bierema 2022-01-07 20:10:50 -06:00 committed by GitHub
parent 90af902aac
commit 1bebc4423e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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,
};