Skip to content

Commit 83a7ec5

Browse files
committed
fix: remove unused logo1.png, fix category string check
1 parent 85962a9 commit 83a7ec5

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

frontend/public/logo.png

-219 KB
Loading

mobile/assets/logo.png

-734 KB
Loading

mobile/src/components/ProductCard.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export default function ProductCard({ product, onPress }) {
1717
source={typeof product.image === 'string' ? { uri: product.image } : product.image}
1818
style={styles.image}
1919
resizeMode="cover"
20-
defaultSource={{ uri: 'https://images.nike.com/is/image/DotCom/DJ9151_001_A_PREM?wid=512&fmt=webp&resMode=sharp2' }}
2120
/>
2221
{product.isTrending && (
2322
<View style={styles.trendBadge}>
@@ -37,7 +36,7 @@ export default function ProductCard({ product, onPress }) {
3736
<Text style={styles.brand} numberOfLines={1}>{product.brand}</Text>
3837
<Text style={styles.name} numberOfLines={1}>{product.name}</Text>
3938
<Text style={styles.category} numberOfLines={1}>
40-
{product.category.indexOf('Men ') === 0 ? product.category.substring(4) : product.category}
39+
{product.category.slice(0, 4) === 'Men ' ? product.category.slice(4) : product.category}
4140
</Text>
4241
<View style={styles.priceRow}>
4342
<Text style={styles.price}>{product.price.toLocaleString('en-IN')}</Text>

0 commit comments

Comments
 (0)