feat: add period of three days

This commit is contained in:
Nikola Ubavic 2022-08-10 23:20:45 +02:00 committed by Rafael
parent a29f3fc13c
commit f079a2926b
2 changed files with 9 additions and 0 deletions

View file

@ -34,11 +34,13 @@ const REPRESENTING_OPTIONS = [
]
const PERIOD_OPTIONS = [
{ code: 'day', display: 'Last 24 hours' },
{ code: 'threeDays', display: 'Last 3 days' },
{ code: 'week', display: 'Last 7 days' },
{ code: 'month', display: 'Last 30 days' }
]
const TIME_OPTIONS = {
day: DAY,
threeDays: 3 * DAY,
week: WEEK,
month: MONTH
}