diff options
| author | Kamran Ahmed <kamranahmed.se@gmail.com> | 2018-08-25 21:49:50 +0500 |
|---|---|---|
| committer | Kamran Ahmed <kamranahmed.se@gmail.com> | 2018-08-25 21:49:50 +0500 |
| commit | 20ed11349b9a0ef5030120ef854449dfed824676 (patch) | |
| tree | 32c8a2714fb54411c9733cdcf44a9db05ac72fc1 /src/components/top-nav | |
| parent | Minor UI change (diff) | |
| download | githunt-20ed11349b9a0ef5030120ef854449dfed824676.tar.gz | |
Change date filter
Diffstat (limited to 'src/components/top-nav')
| -rw-r--r-- | src/components/top-nav/index.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/components/top-nav/index.js b/src/components/top-nav/index.js index 7f36321..387244b 100644 --- a/src/components/top-nav/index.js +++ b/src/components/top-nav/index.js @@ -16,41 +16,41 @@ const TopNav = (props) => ( </a> <div className="float-right duration-btns"> <a href="javascript:void(0)" - onClick={ () => props.updateDateType('yearly') } + onClick={ () => props.updateDateType('year') } className={ classNames('btn', { - 'btn-primary': props.selectedDateType === 'yearly', - 'btn-light': props.selectedDateType !== 'yearly', + 'btn-primary': props.selectedDateType === 'year', + 'btn-light': props.selectedDateType !== 'year', }) }> Yearly </a> <a href="javascript:void(0)" - onClick={ () => props.updateDateType('monthly') } + onClick={ () => props.updateDateType('month') } className={ classNames('btn', { - 'btn-primary': props.selectedDateType === 'monthly', - 'btn-light': props.selectedDateType !== 'monthly', + 'btn-primary': props.selectedDateType === 'month', + 'btn-light': props.selectedDateType !== 'month', }) }> Monthly </a> <a href="javascript:void(0)" - onClick={ () => props.updateDateType('weekly') } + onClick={ () => props.updateDateType('week') } className={ classNames('btn', { - 'btn-primary': props.selectedDateType === 'weekly', - 'btn-light': props.selectedDateType !== 'weekly', + 'btn-primary': props.selectedDateType === 'week', + 'btn-light': props.selectedDateType !== 'week', }) }> Weekly </a> <a href="javascript:void(0)" - onClick={ () => props.updateDateType('daily') } + onClick={ () => props.updateDateType('day') } className={ classNames('btn', { - 'btn-primary': props.selectedDateType === 'daily', - 'btn-light': props.selectedDateType !== 'daily', + 'btn-primary': props.selectedDateType === 'day', + 'btn-light': props.selectedDateType !== 'day', }) }> Daily |
