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

nambahin spasi , benerin jarak antar item price sama original price

parent 232b0fd9
...@@ -128,10 +128,9 @@ class Item extends React.Component { ...@@ -128,10 +128,9 @@ class Item extends React.Component {
} }
<View style={{flexDirection:'row',marginTop:5,marginBottom:5}}> <View style={{flexDirection:'row',marginTop:5,marginBottom:5}}>
<NumberFormat decimalScale={0} value={item.price} renderText={value => <Text style={{marginLeft:5, fontSize: 15, marginRight: 12, fontFamily: 'Gotham-Light', color: 'grey' }}>Rp. {value}</Text>} displayType={'text'} thousandSeparator={true} prefix={''} /> <NumberFormat decimalScale={0} value={item.price} renderText={value => <Text style={{marginLeft:5, fontSize: 15, marginRight: 6, fontFamily: 'Gotham-Light', color: 'grey' }}>Rp. {value}</Text>} displayType={'text'} thousandSeparator={true} prefix={''} />
{item.original_price < item.price ? null : <NumberFormat decimalScale={0} value={item.original_price} renderText={value => <Text style={{marginLeft:3, fontSize: 15, marginRight: 12, fontFamily: 'Gotham-Light', color: '#CCCCCC',textDecorationLine: 'line-through', textDecorationStyle: 'solid', }}>Rp. {value}</Text>} displayType={'text'} thousandSeparator={true} prefix={''} /> } {item.original_price <= item.price ? null : <NumberFormat decimalScale={0} value={item.original_price} renderText={value => <Text style={{marginLeft:1, fontSize: 15, marginRight: 12, fontFamily: 'Gotham-Light', color: '#CCCCCC',textDecorationLine: 'line-through', textDecorationStyle: 'solid', }}>Rp. {value}</Text>} displayType={'text'} thousandSeparator={true} prefix={''} /> }
</View> </View>
</View> </View>
<View style={{ marginLeft: 10, marginRight: 10, flexDirection: 'row' }}> <View style={{ marginLeft: 10, marginRight: 10, flexDirection: 'row' }}>
{ {
...@@ -178,8 +177,8 @@ class Item extends React.Component { ...@@ -178,8 +177,8 @@ class Item extends React.Component {
</View> </View>
{ {
item.note != undefined && item.note != '' ? ( item.note != undefined && item.note != '' ? (
<View style={{ marginLeft: 5, marginRight: 5 }}> <View style={{ marginLeft: 12, marginRight: 12 }}>
<Text style={{ fontSize: 12, marginTop: 8, marginHorizontal: 5, fontFamily: 'Gotham-Light', color: '#838383' }}>{item.note}</Text> <Text style={{ fontSize: 12, marginTop: 5, fontFamily: 'Gotham-Light', color: '#838383' }}>{item.note}</Text>
</View> </View>
) : (false) ) : (false)
} }
......
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