Commit a3e39094 authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

add redux delivery address

parent 265e5f7e
...@@ -141,16 +141,13 @@ class DeliveryAddrees extends React.Component { ...@@ -141,16 +141,13 @@ class DeliveryAddrees extends React.Component {
} }
onSave(address, id, description) { onSave(address, id, name) {
console.log("INI ALAMAT : " + address )
console.log("INI id : " + id )
console.log("INI description : " + description )
let setDataAddress = { let setDataAddress = {
address: address, address: address,
addressId: id, addressId: id,
home_address: '' home_address: name
} }
this.props.setAddress(setDataAddress); this.props.setAddress(setDataAddress);
...@@ -223,7 +220,7 @@ class DeliveryAddrees extends React.Component { ...@@ -223,7 +220,7 @@ class DeliveryAddrees extends React.Component {
renderItem = ({ item }) => { renderItem = ({ item }) => {
return ( return (
<View style={styles.list_addrees}> <View style={styles.list_addrees}>
<TouchableOpacity onPress={() => this.onSave(item.address, item.id)}> <TouchableOpacity onPress={() => this.onSave(item.address, item.id , item.name)}>
<View style={{ flex: 1, flexDirection: 'row', margin: 5, }}> <View style={{ flex: 1, flexDirection: 'row', margin: 5, }}>
<View style={{ flex: 1, marginBottom: 10, justifyContent: 'center' }}> <View style={{ flex: 1, marginBottom: 10, justifyContent: 'center' }}>
<View> <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