From 03a909c1902ece96d994797b380187b54767ba85 Mon Sep 17 00:00:00 2001 From: Sameer Rai Date: Mon, 22 Feb 2021 15:24:55 +0545 Subject: [PATCH] Add custom date selection to top --- components/Input/DateFilter/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Input/DateFilter/index.js b/components/Input/DateFilter/index.js index 2683e4596..63eb51cfd 100644 --- a/components/Input/DateFilter/index.js +++ b/components/Input/DateFilter/index.js @@ -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' }, @@ -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 = {