1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

Dashboard charts - always show past 3 months (#6372)

This commit is contained in:
Tymoteusz Czech 2024-02-28 10:33:49 +01:00 committed by GitHub
parent 74c760bf4c
commit ba2b90af42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,5 @@
import { Theme } from '@mui/material';
import { format, subMonths } from 'date-fns';
import { ILocationSettings } from 'hooks/useLocationSettings';
import { TooltipState } from './ChartTooltip/ChartTooltip';
import { createTooltip } from './createTooltip';
@ -72,6 +73,7 @@ export const createOptions = (
color: theme.palette.text.secondary,
display: !isPlaceholder,
},
min: format(subMonths(new Date(), 3), 'yyyy-MM-dd'),
},
},
}) as const;