|
|
@@ -174,22 +174,24 @@ export default class ProfileV2 extends Component {
|
|
|
name='angle-right'/>
|
|
|
</Button>
|
|
|
{/* Vehicle Info */}
|
|
|
- <Button
|
|
|
- style={styles.cardView}
|
|
|
- viewStyle={styles.profileItem}
|
|
|
- onClick={() => startPage(app.vehicle.newVersionPage ? PageList.vehiclesListV2 : PageList.myVehicles)}>
|
|
|
- <Image
|
|
|
- style={styles.cardIcon}
|
|
|
- source={require('../../images/user/card-vehicle.png')}/>
|
|
|
- <View style={styles.cardInfo}>
|
|
|
- <TextView style={styles.cardLabel}>{$t('profile.myVehicles')}</TextView>
|
|
|
- <TextView style={styles.cardPrimary}>{this.state.userInfo.countVehicle}</TextView>
|
|
|
- </View>
|
|
|
- <FontAwesome
|
|
|
- size={28}
|
|
|
- color={textCancel}
|
|
|
- name='angle-right'/>
|
|
|
- </Button>
|
|
|
+ { app.vehicle.enable &&
|
|
|
+ <Button
|
|
|
+ style={styles.cardView}
|
|
|
+ viewStyle={styles.profileItem}
|
|
|
+ onClick={() => startPage(app.vehicle.newVersionPage ? PageList.vehiclesListV2 : PageList.myVehicles)}>
|
|
|
+ <Image
|
|
|
+ style={styles.cardIcon}
|
|
|
+ source={require('../../images/user/card-vehicle.png')}/>
|
|
|
+ <View style={styles.cardInfo}>
|
|
|
+ <TextView style={styles.cardLabel}>{$t('profile.myVehicles')}</TextView>
|
|
|
+ <TextView style={styles.cardPrimary}>{this.state.userInfo.countVehicle}</TextView>
|
|
|
+ </View>
|
|
|
+ <FontAwesome
|
|
|
+ size={28}
|
|
|
+ color={textCancel}
|
|
|
+ name='angle-right'/>
|
|
|
+ </Button>
|
|
|
+ }
|
|
|
{/* Vehicle List */}
|
|
|
{/* <View style={styles.titleView}>
|
|
|
<Text style={styles.title}>{$t('profile.myVehicles')}</Text>
|