Commit 0c8d8fe4 by xuzhenghua

bug

parents da7eb068 48be893e
...@@ -132,7 +132,7 @@ class Live extends Component { ...@@ -132,7 +132,7 @@ class Live extends Component {
} }
render() { render() {
const {tabs, lives, today} = this.state const {tabs, lives, todayIndex} = this.state
return ( return (
<div id={'live'}> <div id={'live'}>
<div className="title"> <div className="title">
...@@ -142,14 +142,14 @@ class Live extends Component { ...@@ -142,14 +142,14 @@ class Live extends Component {
</div> </div>
<div className="live-container"> <div className="live-container">
{ {
today !== '' && todayIndex !== '' &&
<Tabs <Tabs
tabs={tabs} tabs={tabs}
tabBarBackgroundColor={'transparent'} tabBarBackgroundColor={'transparent'}
tabBarActiveTextColor={'#5600DF'} tabBarActiveTextColor={'#5600DF'}
tabBarInactiveTextColor={'#FFF604'} tabBarInactiveTextColor={'#FFF604'}
tabBarUnderlineStyle={{display: 'none'}} tabBarUnderlineStyle={{display: 'none'}}
initialPage={today} initialPage={todayIndex}
swipeable={false} swipeable={false}
> >
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment