|
|
|
@ -64,6 +64,15 @@ class CoursesBanner extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
componentDidUpdate = (prevProps) => {
|
|
|
|
|
if(prevProps.current_user!=this.props.current_user){
|
|
|
|
|
if(this.props.current_user!==undefined){
|
|
|
|
|
this.setState({
|
|
|
|
|
user_phone_binded :this.props.current_user.user_phone_binded,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
onloadupdatabanner=()=>{
|
|
|
|
|
this.updatabanner()
|
|
|
|
|
}
|
|
|
|
@ -344,16 +353,7 @@ class CoursesBanner extends Component {
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
let { Addcoursestypes, coursedata, modalsType, modalsTopval, loadtype,modalsBottomval,antIcon,user_phone_binded} = this.state;
|
|
|
|
|
try {
|
|
|
|
|
if(this.props.current_user!==undefined){
|
|
|
|
|
this.setState({
|
|
|
|
|
user_phone_binded :this.props.current_user.user_phone_binded,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}catch (e) {
|
|
|
|
|
console.log("CoursesBanner 354")
|
|
|
|
|
console.log(e)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<Trialapplication {...this.state} user_phone_binded={user_phone_binded} ></Trialapplication>
|
|
|
|
|