Commit 232b0fd9 authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

benerin margin harga coret dan di taruh samping

parent 7d15c08f
...@@ -126,8 +126,12 @@ class Item extends React.Component { ...@@ -126,8 +126,12 @@ class Item extends React.Component {
<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>
) )
} }
{item.original_price < item.price ? null : <NumberFormat decimalScale={0} value={item.original_price} renderText={value => <Text style={{marginLeft:5, fontSize: 12, marginRight: 12, fontFamily: 'Gotham-Light', color: '#CCCCCC',textDecorationLine: 'line-through', textDecorationStyle: 'solid' }}>Rp. {value}</Text>} displayType={'text'} thousandSeparator={true} prefix={''} /> }
<NumberFormat decimalScale={0} value={item.price} renderText={value => <Text style={{marginLeft:5, fontSize: 14, marginRight: 12, fontFamily: 'Gotham-Light', color: 'grey' }}>Rp. {value}</Text>} displayType={'text'} thousandSeparator={true} prefix={''} /> <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={''} />
{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={''} /> }
</View>
</View> </View>
<View style={{ marginLeft: 10, marginRight: 10, flexDirection: 'row' }}> <View style={{ marginLeft: 10, marginRight: 10, flexDirection: 'row' }}>
{ {
......
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