Commit 57466b19 authored by William Goszal's avatar William Goszal 🚴

fix transaction history. kalau trans typenya tidak terdaftar, tampilkan blank…

fix transaction history. kalau trans typenya tidak terdaftar, tampilkan blank aja, jangan pakai yang type_renewal
parent 3f3dcce9
...@@ -221,7 +221,7 @@ class TransactionHistory extends React.Component { ...@@ -221,7 +221,7 @@ class TransactionHistory extends React.Component {
) : ) :
/** TYPE_RENEWAL */ /** TYPE_RENEWAL */
( i.type == 7 ? (
<View style={{ marginTop: 5 }} key={k}> <View style={{ marginTop: 5 }} key={k}>
<View style={{ flex: 2, height: 120, margin: 5, borderRadius: 5, borderWidth: 1, borderColor: '#838383', flexDirection: 'row' }}> <View style={{ flex: 2, height: 120, margin: 5, borderRadius: 5, borderWidth: 1, borderColor: '#838383', flexDirection: 'row' }}>
<View style={{ flex: 1.1, justifyContent: 'center', margin: 10 }}> <View style={{ flex: 1.1, justifyContent: 'center', margin: 10 }}>
...@@ -235,6 +235,12 @@ class TransactionHistory extends React.Component { ...@@ -235,6 +235,12 @@ class TransactionHistory extends React.Component {
</View> </View>
</View> </View>
</View> </View>
) :
/** UNKNOWN TYPE */
(
<View style={{ marginTop: 0 }} key={k}>
</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