DatePicker: update selected tab code to reflect update to TabPanel component

This commit is contained in:
Kelly Dwan 2018-10-10 11:11:34 -04:00
parent c340a808a7
commit 6df6594ee1
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class DatePickerContent extends Component {
initialTabName={ 'custom' === period ? 'custom' : 'period' }
onSelect={ this.onTabSelect }
>
{ selectedTab => (
{ ( { name: selectedTab } ) => (
<Fragment>
{ selectedTab === 'period' && (
<PresetPeriods onSelect={ onUpdate } period={ period } />