|
|
@@ -161,24 +161,41 @@ export default class ProfileV2 extends Component {
|
|
|
<ShadowViewV2/>
|
|
|
<EndView half/>
|
|
|
{/* Wallet Info */}
|
|
|
- <Button
|
|
|
- style={styles.cardView}
|
|
|
- viewStyle={styles.profileItem}
|
|
|
- onClick={() => startPage(PageList.wallet)}>
|
|
|
- <Image
|
|
|
- style={styles.cardIcon}
|
|
|
- source={require('../../images/user/card-wallet.png')}/>
|
|
|
- <View style={styles.cardInfo}>
|
|
|
- <TextView style={styles.cardLabel}>{$t('wallet.creditWalletLabel')}</TextView>
|
|
|
- <TextView style={styles.cardPrimary}>{this.state.userInfo.creditStr}</TextView>
|
|
|
- </View>
|
|
|
- <FontAwesome
|
|
|
- size={24}
|
|
|
- color={textCancel}
|
|
|
- name='angle-right'/>
|
|
|
- </Button>
|
|
|
+ { app.v4.wallet
|
|
|
+ ? <Button
|
|
|
+ style={styles.cardView}
|
|
|
+ viewStyle={styles.profileItem}
|
|
|
+ onClick={() => startPage(PageList.wallets)}>
|
|
|
+ <Image
|
|
|
+ style={styles.cardIcon}
|
|
|
+ source={require('../../images/user/card-wallet.png')}/>
|
|
|
+ <View style={styles.cardInfo}>
|
|
|
+ <TextView style={styles.cardLabel}>{$t('drawer.wallets')}</TextView>
|
|
|
+ </View>
|
|
|
+ <FontAwesome
|
|
|
+ size={24}
|
|
|
+ color={textCancel}
|
|
|
+ name='angle-right'/>
|
|
|
+ </Button>
|
|
|
+ : <Button
|
|
|
+ style={styles.cardView}
|
|
|
+ viewStyle={styles.profileItem}
|
|
|
+ onClick={() => startPage(PageList.wallet)}>
|
|
|
+ <Image
|
|
|
+ style={styles.cardIcon}
|
|
|
+ source={require('../../images/user/card-wallet.png')}/>
|
|
|
+ <View style={styles.cardInfo}>
|
|
|
+ <TextView style={styles.cardLabel}>{$t('wallet.creditWalletLabel')}</TextView>
|
|
|
+ <TextView style={styles.cardPrimary}>{this.state.userInfo.creditStr}</TextView>
|
|
|
+ </View>
|
|
|
+ <FontAwesome
|
|
|
+ size={24}
|
|
|
+ color={textCancel}
|
|
|
+ name='angle-right'/>
|
|
|
+ </Button>
|
|
|
+ }
|
|
|
<ShadowViewV2/>
|
|
|
- { utils.isNotEmpty(this.state.userInfo.groupWallet) && <>
|
|
|
+ { (utils.isNotEmpty(this.state.userInfo.groupWallet) && !app.v4.wallet) && <>
|
|
|
<Button
|
|
|
style={styles.cardView}
|
|
|
viewStyle={styles.profileItem}>
|