Commit 7c6e90a3 by Giang Tran

update code

parent eaffd5e5
...@@ -162,7 +162,7 @@ const PacketCQG = (props) => { ...@@ -162,7 +162,7 @@ const PacketCQG = (props) => {
<View style={styles.container}> <View style={styles.container}>
<AppText i18nKey={'Note_cqg'} /> <AppText i18nKey={'Note_cqg'} />
<ContainerTop fee={fee} /> <ContainerTop fee={fee} />
{feeOperating.title ? ( {feeOperating.data.length > 0 ? (
<WrapNomarl <WrapNomarl
onRemovePacket={onRemovePacket} onRemovePacket={onRemovePacket}
onChoosePacket={onChoosePacket} onChoosePacket={onChoosePacket}
...@@ -170,19 +170,23 @@ const PacketCQG = (props) => { ...@@ -170,19 +170,23 @@ const PacketCQG = (props) => {
listRegister={listRegister} listRegister={listRegister}
/> />
) : null} ) : null}
{feeConnect.data.length > 0 ? (
<WrapNomarl
onRemovePacket={onRemovePacket}
onChoosePacket={onChoosePacket}
data={feeConnect}
listRegister={listRegister}
/>
) : null}
<WrapNomarl {feeNonPro.data.length > 0 ? (
onRemovePacket={onRemovePacket} <WrapNomarl
onChoosePacket={onChoosePacket} onRemovePacket={onRemovePacket}
data={feeConnect} onChoosePacket={onChoosePacket}
listRegister={listRegister} data={feeNonPro}
/> listRegister={listRegister}
<WrapNomarl />
onRemovePacket={onRemovePacket} ) : null}
onChoosePacket={onChoosePacket}
data={feeNonPro}
listRegister={listRegister}
/>
<FeePro <FeePro
onRemovePacket={onRemovePacket} onRemovePacket={onRemovePacket}
......
...@@ -44,7 +44,8 @@ const ContainerTop = (props) => { ...@@ -44,7 +44,8 @@ const ContainerTop = (props) => {
return ( return (
<View> <View>
<Text style={styles.txtTitle}> {title}</Text> {title ? <Text style={styles.txtTitle}> {title}</Text> : null}
<View style={styles.wrap}> <View style={styles.wrap}>
{listItem.map((e) => ( {listItem.map((e) => (
<View key={e.id + 'a'} style={styles.item}> <View key={e.id + 'a'} style={styles.item}>
......
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