Skip to content

Commit

Permalink
Add custom date selection to top
Browse files Browse the repository at this point in the history
  • Loading branch information
samshara authored and AdityaKhatri committed Feb 22, 2021
1 parent b8b8d86 commit 03a909c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Input/DateFilter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ class DateFilter extends React.PureComponent {
static defaultProps = defaultProps;

static defaultOptions = [
{ key: 'customRange', label: 'Select a date range' },
{ key: 'customExact', label: 'Select an exact date' },
{ key: 'today', label: 'Today' },
{ key: 'yesterday', label: 'Yesterday' },
{ key: 'currentWeek', label: 'This week' },
Expand All @@ -154,8 +156,6 @@ class DateFilter extends React.PureComponent {
{ key: 'lastThreeMonths', label: 'Last 3 months' },
{ key: 'lastSixMonths', label: 'Last 6 months' },
{ key: 'lastOneYear', label: 'Last 1 year' },
{ key: 'customExact', label: 'Select an exact date' },
{ key: 'customRange', label: 'Select a date range' },
];

static exactModalSchema = {
Expand Down

0 comments on commit 03a909c

Please sign in to comment.