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:
parent
74c760bf4c
commit
ba2b90af42
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user