Commit cfbc95eb authored by Dida Adams Arizona's avatar Dida Adams Arizona

Merge branch 'didam' into 'master'

fix kesalahanku

See merge request !53
parents 3add0435 9e2a96a9
......@@ -84,7 +84,7 @@ class HomePageScreen extends Component {
<View style={{width: '50%', paddingTop: 30}}>
<Image source={Images.logo_eCart} style={{width: 120, height: 35}}/>
<View style={{elevation: 5, width: 85, height: 85, borderRadius: 85, borderWidth: 46, borderColor: 'white', marginTop: 25, backgroundColor: 'red', alignItems: 'center', justifyContent: 'center',}}>
<Image source={{uri: this.state.user != null? 'https://apiecart.eksad.com/' + this.state.user.data.user_image : Images.beautyProduct}} style={{width: 85, height: 85, borderRadius: 85}}/>
<Image source={this.state.user == null? Images.beautyProduct : {uri:'https://apiecart.eksad.com/' + this.state.user.data.user_image}} style={{width: 85, height: 85, borderRadius: 85}}/>
</View>
<BaseText type={"bold"} text={this.state.user != null? titleCase(this.state.user.data.user_name) : 'Kang Dadang'} style={{fontSize: 18, color: '#4b4b4b', marginLeft: 5, marginTop: 10}}/>
</View>
......@@ -169,6 +169,7 @@ class HomePageScreen extends Component {
this.getCart()
this.getAppInfo()
if (this.state.user == null) {
this.setState({authView: true})
}
BackHandler.addEventListener("hardwareBackPress", this.backAction);
......
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