Commit 3133eacb authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

cek jika original price lebih kecil dari price maka gak usah di tampilin

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