Open ImranArtwel opened 2 years ago
@imranArtwel define additional object below mention format const moreOption = [ { label: "last quarter", range: () => ({ startDate:addMonths(new Date(), -3), endDate: new Date() }) }, { label: "last quarter", range: () => ({ startDate:new Date(), endDate: addMonths(new Date(), 3) }) }, ]
const totalRages = [...defaultStaticRanges,...createStaticRanges(moreOption)]
<DateRangePicker staticRanges={totalRages} direction="vertical" rangeColors = {['#4d2400']} />)
`add months
function imported from date-fns package
Subject of the issue
I would like to add more static ranges like
quarter
,last quarter
andnext quarter
to defaultStaticRangesEnvironment
Package Version: React version: Node version: Browser: