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

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

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