Commit 7cf95b08 authored by William Goszal's avatar William Goszal 🚴

tampilin notenya di list item di halaman menu & cart

parent 3cf7e94f
...@@ -173,6 +173,14 @@ class Item extends React.Component { ...@@ -173,6 +173,14 @@ class Item extends React.Component {
} }
</View> </View>
{
item.note != undefined && item.note != '' ? (
<View style={{ marginLeft: 5, marginRight: 5 }}>
<Text style={{ fontSize: 12, marginTop: 8, marginHorizontal:5, fontFamily: 'Gotham-Light', color: '#838383' }}>{item.note}</Text>
</View>
):( false )
}
</View> </View>
</View> </View>
)} )}
......
...@@ -112,7 +112,7 @@ class ItemShoping extends React.Component { ...@@ -112,7 +112,7 @@ class ItemShoping extends React.Component {
</View> </View>
<View style={{ flex: 2 }}> <View style={{ flex: 2 }}>
<View style={{ marginLeft: 5, marginRight: 5 }}> <View style={{ marginLeft: 5, marginRight: 5 }}>
<Text style={{ fontSize: 14, margin: 5, marginRight: 10, fontFamily: 'Gotham-Black', color: '#838383' }}>{item.name}</Text> <Text style={{ fontSize: 14, margin: 5, marginRight: 10, fontFamily: 'Gotham-Black', color: '#838383' }}>{item.name}</Text>
<NumberFormat decimalScale={0} value={item.price} renderText={value => <Text style={{ fontSize: 14, margin: 5, marginRight: 10, fontFamily: 'Gotham-Light', color: 'grey' }}>Rp. {value}</Text>} displayType={'text'} thousandSeparator={true} prefix={''} /> <NumberFormat decimalScale={0} value={item.price} renderText={value => <Text style={{ fontSize: 14, margin: 5, marginRight: 10, fontFamily: 'Gotham-Light', color: 'grey' }}>Rp. {value}</Text>} displayType={'text'} thousandSeparator={true} prefix={''} />
</View> </View>
<View style={{ marginLeft: 5, marginRight: 5, flexDirection: 'row' }}> <View style={{ marginLeft: 5, marginRight: 5, flexDirection: 'row' }}>
...@@ -149,6 +149,13 @@ class ItemShoping extends React.Component { ...@@ -149,6 +149,13 @@ class ItemShoping extends React.Component {
</TouchableOpacity> </TouchableOpacity>
</View> </View>
</View> </View>
{
item.note != undefined && item.note != '' ? (
<View style={{ marginLeft: 5, marginRight: 5 }}>
<Text style={{ fontSize: 12, marginTop: 8, marginHorizontal:5, fontFamily: 'Gotham-Light', color: '#838383' }}>{item.note}</Text>
</View>
):( false )
}
</View> </View>
</View> </View>
</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