Commit 8eb8c15e authored by William Goszal's avatar William Goszal 🚴

fix text saat kirim whatsapp

parent d6db27c1
......@@ -234,5 +234,5 @@
"alertVoucher":"Voucher cannot be used with point",
"alertemailblank":"Email cannot be empty",
"waCallCenter":"Hello, I have a problem with the transaction number #"
"waCallCenter":"Hello, I have a problem with trans no"
}
\ No newline at end of file
......@@ -234,5 +234,5 @@
"alertVoucher":"Voucher tidak bisa digunakan dengan point",
"alertemailblank":"Email tidak boleh kosong",
"waCallCenter":"Halo, saya ada masalah dengan nomor transaksi #"
"waCallCenter":"Halo, saya ada masalah dengan trans no"
}
\ No newline at end of file
......@@ -358,7 +358,10 @@ class OrderDetail extends React.Component {
</TouchableOpacity>
</View>
<View>
<TouchableOpacity onPress={() => { Linking.openURL('whatsapp://send?text=say something&phone=' + this.state.detail_trans.grab_driver_phone) }}>
<TouchableOpacity onPress={() => {
Linking.openURL("whatsapp://send?phone="+this.state.detail_trans.grab_driver_phone+"&text=" )
}}>
<Icon
name='whatsapp'
type='font-awesome'
......@@ -630,7 +633,10 @@ class OrderDetail extends React.Component {
{
this.state.trans_status < 4 && this.state.trans_status !== -1 ? (<TouchableOpacity onPress={() => { Linking.openURL('whatsapp://send?text=say something&phone=' + this.state.detail_trans.call_center_phone) }}>
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 }}>
......
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