Update proptypes, use date function

This commit is contained in:
Alex Holliday committed 2024-09-14 10:57:46 +08:00
1 parent b3d16bfa25
commit 1e480a10e0
2 files changed
+5 -8

No files matched your search

@@ -42,8 +42,8 @@ const CustomLabels = ({
CustomLabels.propTypes = {
x: PropTypes.number.isRequired,
width: PropTypes.number.isRequired,
height: PropTypes.number.isRequired,
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
firstDataPoint: PropTypes.object.isRequired,
lastDataPoint: PropTypes.object.isRequired,
type: PropTypes.string.isRequired,