chore: update
This commit is contained in:
@@ -218,13 +218,13 @@ export default function ProductCard({ product, onPress, categoryColor }: Product
|
||||
style={[
|
||||
styles.quickAddBtn,
|
||||
{ backgroundColor: catColor },
|
||||
isSoldOut && {
|
||||
(isSoldOut || isComingSoon) && {
|
||||
backgroundColor: colors.textMuted,
|
||||
opacity: 0.6,
|
||||
},
|
||||
]}
|
||||
onPress={handleQuickAdd}
|
||||
disabled={isSoldOut}
|
||||
disabled={isSoldOut || isComingSoon}
|
||||
activeOpacity={0.7}
|
||||
>
|
||||
<Text
|
||||
@@ -235,6 +235,8 @@ export default function ProductCard({ product, onPress, categoryColor }: Product
|
||||
>
|
||||
{isSoldOut
|
||||
? "Rupture de stock"
|
||||
: isComingSoon
|
||||
? "Bientôt disponible"
|
||||
: "Ajouter rapidement"}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
|
||||
@@ -615,24 +615,26 @@ export default function ProductDetailScreen() {
|
||||
<TouchableOpacity
|
||||
style={[
|
||||
styles.addToCartBtn,
|
||||
(isOutOfStock || selectedGrams === null) &&
|
||||
(isOutOfStock || isComingSoon || selectedGrams === null) &&
|
||||
styles.addToCartBtnDisabled,
|
||||
]}
|
||||
onPress={handleAddToCart}
|
||||
disabled={
|
||||
isOutOfStock || selectedGrams === null || adding
|
||||
isOutOfStock || isComingSoon || selectedGrams === null || adding
|
||||
}
|
||||
activeOpacity={0.7}
|
||||
>
|
||||
<Text
|
||||
style={[
|
||||
styles.addToCartText,
|
||||
(isOutOfStock || selectedGrams === null) &&
|
||||
(isOutOfStock || isComingSoon || selectedGrams === null) &&
|
||||
styles.addToCartTextDisabled,
|
||||
]}
|
||||
>
|
||||
{isOutOfStock
|
||||
? "Rupture de stock"
|
||||
: isComingSoon
|
||||
? "Bientôt disponible"
|
||||
: "Ajouter au panier"}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
|
||||
Reference in New Issue
Block a user