Commit 350fc230 by Giang Tran

update code

parent 94b48eb5
......@@ -33,7 +33,7 @@ import {
const renderWallet = (status, current_money, current_cqg_money, contract) => {
const navigate = useNavigation();
if (status == 3 && contract != '')
if (status == 6)
return (
<View style={{flex: 1, flexDirection: 'row'}}>
<View style={styles.containerWallet}>
......@@ -57,6 +57,26 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
</View>
</View>
);
if (status == 5)
return (
<View style={{flex: 1, flexDirection: 'row'}}>
<View style={styles.containerWallet}>
<Text style={styles.txtWallet}>Tài khon ví</Text>
<View style={{flexDirection: 'row'}}>
<Text style={styles.txtMoney}>
{current_money == 0 ? 0 : toPriceVnd(current_money)}
</Text>
<Text style={styles.txtUnit}>Đ</Text>
</View>
</View>
<View style={{width: 1, backgroundColor: '#EDEDF1', height: '100%'}} />
<View style={styles.containerWallet}>
<Text style={[styles.txtWhite, {color: '#FFB721'}]}>
Ch m TK CQG
</Text>
</View>
</View>
);
if (status == 3 && !contract)
return (
<View style={{flex: 1, flexDirection: 'row'}}>
......
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