Disable all-time filter as default date range

This commit is contained in:
Chris Walsh 2021-12-04 15:32:25 -08:00
parent 4947509cb4
commit 95380a9844
No known key found for this signature in database
GPG key ID: 28EE0CCA6032019E
2 changed files with 27 additions and 4 deletions

View file

@ -19,7 +19,13 @@ export default function DateRangeSetting() {
return (
<>
<DateFilter value={value} startDate={startDate} endDate={endDate} onChange={setDateRange} />
<DateFilter
value={value}
startDate={startDate}
endDate={endDate}
onChange={setDateRange}
disableOptions={['all']}
/>
<Button className={styles.button} size="small" onClick={handleReset}>
<FormattedMessage id="label.reset" defaultMessage="Reset" />
</Button>