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 {
}
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 = {
address: address,
addressId: id,
home_address: ''
home_address: name
}
this.props.setAddress(setDataAddress);
......@@ -223,7 +220,7 @@ class DeliveryAddrees extends React.Component {
renderItem = ({ item }) => {
return (
<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, marginBottom: 10, justifyContent: 'center' }}>
<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