|
|
|
@ -9,8 +9,6 @@ class Live extends Component{
|
|
|
|
|
render(){
|
|
|
|
|
const { liveData , lives , successFunc , pageSize , changePage } = this.props;
|
|
|
|
|
|
|
|
|
|
const { admin , business , is_teacher } = this.props.user;
|
|
|
|
|
const operation = admin || business || (is_teacher && this.props.checkIfProfessionalCertification())
|
|
|
|
|
return(
|
|
|
|
|
<div className="livePanel">
|
|
|
|
|
{
|
|
|
|
@ -26,7 +24,6 @@ class Live extends Component{
|
|
|
|
|
{...this.props}
|
|
|
|
|
{...this.state}
|
|
|
|
|
successFunc={()=>successFunc()}
|
|
|
|
|
operation={operation}
|
|
|
|
|
></LiveItem>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
@ -42,7 +39,6 @@ class Live extends Component{
|
|
|
|
|
:
|
|
|
|
|
<NoneData style={{width: '100%'}}></NoneData>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|