DatePicker: update selected tab code to reflect update to TabPanel component
This commit is contained in:
parent
c340a808a7
commit
6df6594ee1
|
@ -83,7 +83,7 @@ class DatePickerContent extends Component {
|
||||||
initialTabName={ 'custom' === period ? 'custom' : 'period' }
|
initialTabName={ 'custom' === period ? 'custom' : 'period' }
|
||||||
onSelect={ this.onTabSelect }
|
onSelect={ this.onTabSelect }
|
||||||
>
|
>
|
||||||
{ selectedTab => (
|
{ ( { name: selectedTab } ) => (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
{ selectedTab === 'period' && (
|
{ selectedTab === 'period' && (
|
||||||
<PresetPeriods onSelect={ onUpdate } period={ period } />
|
<PresetPeriods onSelect={ onUpdate } period={ period } />
|
||||||
|
|
Loading…
Reference in New Issue