We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8219fd6 commit 39aac22Copy full SHA for 39aac22
components/ProductCard.js
@@ -24,17 +24,17 @@ class ProductCard extends React.Component {
24
resizeMode="contain"
25
/>
26
<View>
27
- <Text>
+ <Text style={styles.title}>
28
{product.title}
29
</Text>
30
{isProductAvailable
31
? (
32
33
- {product.price}
+ <Text style={styles.price}>
+ {`₹ ${product.price}`}
34
35
)
36
: (
37
+ <Text style={styles.soldOutText}>
38
Sold Out
39
40
@@ -60,4 +60,17 @@ const styles = StyleSheet.create({
60
height: 120,
61
width: 120,
62
},
63
+ title: {
64
+ fontWeight: '500',
65
+ fontSize: 18,
66
+ },
67
+ price: {
68
+ paddingTop: 8,
69
+ fontSize: 16,
70
71
+ soldOutText: {
72
73
+ color: '#fc6c85',
74
75
76
});
0 commit comments