Commit 63980c0c by Giang Tran

update packet cqg

parent 0c02a7df
......@@ -35,7 +35,9 @@ const Profile = (props) => {
return (
<View style={styles.container}>
{props.user.status == 6 ? (
{props.user.status == 6 ||
props.user.status == 7 ||
props.user.status == 8 ? (
<View>
<View style={styles.item}>
<AppText i18nKey={'ContactCode'} style={styles.txtTitle}></AppText>
......@@ -53,7 +55,7 @@ const Profile = (props) => {
style={styles.txtTitle}></AppText>
<Text style={styles.txtBig}>{props.user.cqg_account}</Text>
</View>
{props.user.status == 6 ? (
<View
style={{
flexDirection: 'row',
......@@ -64,12 +66,17 @@ const Profile = (props) => {
<TouchableOpacity
onPress={() => navigation.navigate(PACKETCQG)}
style={styles.btnLeft}>
<AppText i18nKey={'UpdatePacket'} style={styles.txtBtn}></AppText>
<AppText
i18nKey={'UpdatePacket'}
style={styles.txtBtn}></AppText>
</TouchableOpacity>
<TouchableOpacity onPress={onClickCLose} style={styles.btnRight}>
<AppText i18nKey={'CloseAccount'} style={styles.txtBtn}></AppText>
<AppText
i18nKey={'CloseAccount'}
style={styles.txtBtn}></AppText>
</TouchableOpacity>
</View>
) : null}
</View>
) : (
<View style={{justifyContent: 'center', alignItems: 'center', flex: 1}}>
......
......@@ -115,10 +115,7 @@ const GeneralInfor = (props) => {
<AppText i18nKey={'Status'} style={styles.txtTitle}></AppText>
</View>
<View style={styles.wrapRight}>
<Text style={styles.txtTitle}>
{' '}
{renderStatus(props.user.status)}
</Text>
<Text style={styles.txtTitle}>{props.user.status_name}</Text>
</View>
</View>
......
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