Commit 5a45a2b9 authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

update padding

parent 810dc8fb
...@@ -102,14 +102,14 @@ class Item extends React.Component { ...@@ -102,14 +102,14 @@ class Item extends React.Component {
</View> </View>
</View> </View>
</Modal> </Modal>
<View style={{ flex: 0.6 }}> <View style={{ flex: 1 }}>
<TouchableOpacity onPress={() => this.props.navigation.navigate('Menu Detail', { nameMenu: item.name, desc: item.description, image: item.image })}> <TouchableOpacity onPress={() => this.props.navigation.navigate('Menu Detail', { nameMenu: item.name, desc: item.description, image: item.image })}>
{/* <Image source={{ uri: item.image }} style={{ height: 100, width: 100, borderRadius: 10, }}></Image> */} {/* <Image source={{ uri: item.image }} style={{ height: 100, width: 100, borderRadius: 10, }}></Image> */}
<Image style={{ height: 100, width: 100, borderRadius: 10, }} source={item.image ? {uri: item.image } : null} /> <Image style={{ height: 100, width: 100, borderRadius: 10, }} source={item.image ? {uri: item.image } : null} />
</TouchableOpacity> </TouchableOpacity>
</View> </View>
<View style={{ flex: 0.7}}> <View style={{ flex: 2}}>
<View style={{ marginLeft: 5, marginRight: 5 }}> <View style={{ marginLeft: 10, marginRight: 19 }}>
{ {
item.motm ? ( item.motm ? (
<View style={{ marginLeft: 5, flexDirection: 'row', alignItems: 'center' }}> <View style={{ marginLeft: 5, flexDirection: 'row', alignItems: 'center' }}>
...@@ -128,7 +128,7 @@ class Item extends React.Component { ...@@ -128,7 +128,7 @@ class Item extends React.Component {
<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: 10, marginRight: 10, flexDirection: 'row' }}>
{ {
item.sold_out == true ? ( item.sold_out == true ? (
<Text style={{ fontSize: 14, margin: 5, marginRight: 10, fontFamily: 'Gotham-Black', color: '#838383' }}>Sold Out</Text> <Text style={{ fontSize: 14, margin: 5, marginRight: 10, fontFamily: 'Gotham-Black', color: '#838383' }}>Sold Out</Text>
......
...@@ -384,7 +384,7 @@ class MenuSelection extends React.Component { ...@@ -384,7 +384,7 @@ class MenuSelection extends React.Component {
windowSize={10} windowSize={10}
/> />
) : ( ) : (
<Text style={{ flexWrap: 'wrap', fontFamily: 'Gotham-Light', color: '#b1b1b2', textAlign: 'center', top: 20 }}> Tidak Ada Menu untuk kategory ini !</Text> <Text style={{ flexWrap: 'wrap', fontFamily: 'Gotham-Light', color: '#b1b1b2', textAlign: 'center', top: 20 }}> {i18n.t('itemnotfound')}</Text>
) )
)} )}
</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