Commit 06909b82 authored by William Goszal's avatar William Goszal 🚴

tombol call support selalu nongol. icon whatsappnya ganti jadi putih.

parent 3aa40d6f
...@@ -655,29 +655,22 @@ class OrderDetail extends React.Component { ...@@ -655,29 +655,22 @@ class OrderDetail extends React.Component {
)) : null )) : null
} }
{
this.state.trans_status < 4 && this.state.trans_status !== -1 ? (
<TouchableOpacity onPress={() => { <TouchableOpacity onPress={() => {
Linking.openURL("whatsapp://send?phone="+this.state.detail_trans.call_center_phone+"&text="+i18n.t('waCallCenter')+" "+this.state.numberId ) Linking.openURL("whatsapp://send?phone="+this.state.detail_trans.call_center_phone+"&text="+i18n.t('waCallCenter')+" "+this.state.numberId )
}}> }}>
<View style={styles.button3}> <View style={styles.button3}>
<View style={{ flexDirection: 'row', justifyContent: 'center', alignItems: 'center' }}> <View style={{ flexDirection: 'row', justifyContent: 'center', alignItems: 'center' }}>
<View style={{ marginRight: 10 }}> <View style={{ marginRight: 10 }}>
<Icon <Icon name='whatsapp' type='font-awesome' color='white' size={24} />
name='whatsapp'
type='font-awesome'
color='green'
size={24}
/>
</View> </View>
<View style={{ paddingRight: 25 }}> <View style={{ }}>
<Text style={{ color: 'white', fontSize: 16, fontFamily: 'Gotham-Black' }}>{i18n.t('help')}</Text> <Text style={{ color: 'white', fontSize: 16, fontFamily: 'Gotham-Black' }}>
{i18n.t('help')}
</Text>
</View> </View>
</View> </View>
</View> </View>
</TouchableOpacity>) : (null) </TouchableOpacity>
}
{ {
this.state.trans_status == 0 ? (<TouchableOpacity onPress={() => this.handleCancel()}> this.state.trans_status == 0 ? (<TouchableOpacity onPress={() => this.handleCancel()}>
...@@ -704,9 +697,7 @@ class OrderDetail extends React.Component { ...@@ -704,9 +697,7 @@ class OrderDetail extends React.Component {
</TouchableOpacity> </TouchableOpacity>
) )
) : ( ) : (null)
null
)
} }
<View style={{ marginVertical: 20 }} /> <View style={{ marginVertical: 20 }} />
......
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