Commit 3601ac20 authored by Trisno's avatar Trisno

tambah touchableopacity di voucher shopping cart

parent 37ecc649
...@@ -435,24 +435,26 @@ class ShoppingCart extends React.Component { ...@@ -435,24 +435,26 @@ class ShoppingCart extends React.Component {
this.props.voucher === [] ? ( this.props.voucher === [] ? (
<> </> <> </>
) : ( ) : (
<Card style={{ padding: 5, margin: 10 }}> <TouchableOpacity onPress={() => this.props.navigation.navigate('Reward Select')}>
<View> <Card style={{ padding: 5, margin: 10 }}>
<Image source={{ uri: this.props.voucher.title_image }}
resizeMethod="resize"
resizeMode='cover'
style={{ height: 150, width: '100%' }} />
</View>
<View style={{ flexDirection: 'row', justifyContent: 'space-between', padding: 10 }}>
<View> <View>
<Text style={{ fontWeight: 'bold', textAlign: 'left' }}>{this.props.voucher.title}</Text> <Image source={{ uri: this.props.voucher.title_image }}
<Text style={{ textAlign: 'left' }}>{this.props.voucher.subtitle}</Text> resizeMethod="resize"
resizeMode='cover'
style={{ height: 150, width: '100%' }} />
</View> </View>
<View> <View style={{ flexDirection: 'row', justifyContent: 'space-between', padding: 10 }}>
<Text style={{ textAlign: 'right' }}>Diskon</Text> <View>
<Text style={{ textAlign: 'right' }}>{this.props.voucher.value}</Text> <Text style={{ fontWeight: 'bold', textAlign: 'left' }}>{this.props.voucher.title}</Text>
<Text style={{ textAlign: 'left' }}>{this.props.voucher.subtitle}</Text>
</View>
<View>
<Text style={{ textAlign: 'right' }}>Diskon</Text>
<Text style={{ textAlign: 'right' }}>{this.props.voucher.value}</Text>
</View>
</View> </View>
</View> </Card>
</Card> </TouchableOpacity>
) )
} }
......
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