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

add alert pickup

parent dc9a19c5
...@@ -234,39 +234,44 @@ class PickupName extends React.Component { ...@@ -234,39 +234,44 @@ class PickupName extends React.Component {
</TouchableOpacity> </TouchableOpacity>
</View> </View>
) : (<View> ) : (<View>
<View>
<View style={{ flexDirection: 'row', flex: 1 }}> <TouchableOpacity onPress={() => Alert.alert('','Mohon Maaf Outlet Tutup !')}>
<View> <View style={{ flexDirection: 'row', flex: 1 }}>
<MaterialCommunityIcons name="map-marker" size={32} color="#ccb46c" /> <View>
</View> <MaterialCommunityIcons name="map-marker" size={32} color="#ccb46c" />
<View style={styles.list_addrees}> </View>
<View style={{ margin: 5 }}> <View style={styles.list_addrees}>
<Text style={{ fontFamily: 'Gotham-Black', color: 'grey', fontSize: 20 }}>{item.name}</Text> <View style={{ margin: 5 }}>
<View style={{ flexDirection: 'row' }}> <Text style={{ fontFamily: 'Gotham-Black', color: 'grey', fontSize: 20 }}>{item.name}</Text>
{item.can_accept_order == true ? (<Text style={{ fontFamily: 'Gotham-Black', color: "#ccb46c", top: 5 }}>OPEN </Text>) <View style={{ flexDirection: 'row' }}>
: (<Text style={{ fontFamily: 'Gotham-Black', color: "#ccb46c" }}>CLOSED </Text>)} {item.can_accept_order == true ? (<Text style={{ fontFamily: 'Gotham-Black', color: "#ccb46c", top: 5 }}>OPEN </Text>)
: (<Text style={{ fontFamily: 'Gotham-Black', color: "#ccb46c" }}>CLOSED </Text>)}
</View>
</View> </View>
<Text style={{ fontFamily: 'Gotham-Light', color: '#CFB368' }}> Opening Hours : {item.open_time} - {item.close_time}</Text>
<Text style={{ margin: 5, color: '#b1b1b2', fontFamily: 'Gotham-Light' }}>
{item.full_address}
</Text>
</View>
<View>
<CheckBox
center
checkedIcon='dot-circle-o'
uncheckedIcon='circle-o'
checked={this.state.checked}
checkedColor="#ccb46c"
uncheckedColor="#ccb46c"
/>
<Text style={{ textAlign: 'center', color: '#ccb46c', fontFamily: 'Gotham-Light' }}>{item.distance} KM</Text>
</View> </View>
<Text style={{ fontFamily: 'Gotham-Light', color: '#CFB368' }}> Opening Hours : {item.open_time} - {item.close_time}</Text>
<Text style={{ margin: 5, color: '#b1b1b2', fontFamily: 'Gotham-Light' }}>
{item.full_address}
</Text>
</View>
<View>
<CheckBox
center
checkedIcon='dot-circle-o'
uncheckedIcon='circle-o'
checked={this.state.checked}
checkedColor="#ccb46c"
uncheckedColor="#ccb46c"
/>
<Text style={{ textAlign: 'center', color: '#ccb46c', fontFamily: 'Gotham-Light' }}>{item.distance} KM</Text>
</View> </View>
</TouchableOpacity>
</View> </View>
</View>)} </View>)}
</View> </View>
); );
} }
render() { render() {
......
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