ordering-ui-react-native 0.17.20 → 0.17.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1108,11 +1108,20 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
1108
1108
|
|
|
1109
1109
|
|
|
1110
1110
|
export const ProductForm = (props: any) => {
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1111
|
+
const productOptionsProps = {
|
|
1112
|
+
...props,
|
|
1113
|
+
productCart: {
|
|
1114
|
+
...props.productCart,
|
|
1115
|
+
quantity: props.productCart?.code
|
|
1116
|
+
? props.productCart?.quantity
|
|
1117
|
+
: props?.product?.minimum_per_order || 1
|
|
1118
|
+
},
|
|
1119
|
+
UIComponent: ProductOptionsUI
|
|
1120
|
+
}
|
|
1116
1121
|
|
|
1117
|
-
|
|
1122
|
+
return <ProductOptions {...productOptionsProps} />
|
|
1118
1123
|
};
|
|
1124
|
+
|
|
1125
|
+
ProductForm.defaultProps = {
|
|
1126
|
+
productAddedToCartLength: 0
|
|
1127
|
+
}
|