Fix label proptype to allow for dates and numbers, add comments
This commit is contained in:
1 parent
a0c73469fa
commit
e3c13d93ec
2 files changed
+10
-5
No files matched your search
@@ -162,7 +162,11 @@ export const InfrastructureTooltip = ({
|
||||
InfrastructureTooltip.propTypes = {
|
||||
active: PropTypes.bool,
|
||||
payload: PropTypes.array,
|
||||
label: PropTypes.string,
|
||||
label: PropTypes.oneOfType([
|
||||
PropTypes.instanceOf(Date),
|
||||
PropTypes.string,
|
||||
PropTypes.number,
|
||||
]),
|
||||
yKey: PropTypes.string,
|
||||
yIdx: PropTypes.number,
|
||||
yLabel: PropTypes.string,
|
||||
|
||||
Reference in new issue
Block a user