Commit 06423dde authored by Trisno's avatar Trisno

item sold out

parent 20ab641b
......@@ -114,7 +114,7 @@ class Item extends React.Component {
<View style={{ marginLeft: 5, marginRight: 5 }}>
{
item.motm ? (
<View style={{ marginLeft : 5, flexDirection:'row', alignItems:'center' }}>
<View style={{ marginLeft: 5, flexDirection: 'row', alignItems: 'center' }}>
<Icon
name='star'
type='font-awesome'
......@@ -131,6 +131,11 @@ 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={''} />
</View>
<View style={{ marginLeft: 5, marginRight: 5, flexDirection: 'row' }}>
{
item.sold_out == true ? (
<Text style={{ fontSize: 14, margin: 5, marginRight: 10, fontFamily: 'Gotham-Black', color: '#838383' }}>Sold Out</Text>
) : (
<>
<TouchableOpacity style={{ justifyContent: 'center' }} onPress={() => this.handleAddDescription()}>
<View style={styles.shadowEdit}>
<Icon
......@@ -163,6 +168,10 @@ class Item extends React.Component {
/>
</TouchableOpacity>
</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