ordering-ui-react-native 0.12.25 → 0.12.26
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
|
@@ -131,22 +131,29 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
131
131
|
</Placeholder>
|
|
132
132
|
) : (
|
|
133
133
|
<>
|
|
134
|
-
<
|
|
135
|
-
|
|
134
|
+
<View style={{ flexDirection: 'column', width: '100%' }}>
|
|
135
|
+
<OText size={20} style={{ flex: I18nManager.isRTL ? 0 : 1, marginBottom: 10 }}>{product?.name || productCart.name}{'price'}</OText>
|
|
136
|
+
<View style={{ flexDirection: 'row', justifyContent: 'space-between', marginBottom: 10 }}>
|
|
137
|
+
<OText size={16} style={{ flex: I18nManager.isRTL ? 1 : 0 }} color={theme.colors.primary}>{productCart.price ? parsePrice(productCart.price) : ''}</OText>
|
|
138
|
+
<OText size={14} style={{ flex: I18nManager.isRTL ? 1 : 0 }} color={'#909BA9'}>
|
|
139
|
+
{
|
|
140
|
+
((product?.sku && product?.sku !== '-1' && product?.sku !== '1') || (productCart?.sku && productCart?.sku !== '-1' && productCart?.sku !== '1'))
|
|
141
|
+
&& <>{t('SKU', 'Sku')}{' '}{product?.sku || productCart?.sku}</>
|
|
142
|
+
}
|
|
143
|
+
{product?.sku && product?.sku !== '-1' && product?.sku !== '1' && product?.estimated_person && (
|
|
144
|
+
<> · </>
|
|
145
|
+
)}
|
|
146
|
+
{product?.estimated_person
|
|
147
|
+
&& <>{product?.estimated_person}{' '}{t('ESTIMATED_PERSONS', 'persons')}</>
|
|
148
|
+
}
|
|
149
|
+
</OText>
|
|
150
|
+
</View>
|
|
151
|
+
</View>
|
|
136
152
|
</>
|
|
137
153
|
)}
|
|
138
154
|
</ProductTitle>
|
|
139
155
|
<ProductDescription>
|
|
140
156
|
<OText>{product?.description || productCart?.description}</OText>
|
|
141
|
-
{(
|
|
142
|
-
(product?.sku && product?.sku !== '-1' && product?.sku !== '1') ||
|
|
143
|
-
(productCart?.sku && productCart?.sku !== '-1' && productCart?.sku !== '1')
|
|
144
|
-
) && (
|
|
145
|
-
<>
|
|
146
|
-
<OText size={20}>{t('SKU', 'Sku')}</OText>
|
|
147
|
-
<OText>{product?.sku || productCart?.sku}</OText>
|
|
148
|
-
</>
|
|
149
|
-
)}
|
|
150
157
|
</ProductDescription>
|
|
151
158
|
{loading && !product ? (
|
|
152
159
|
<>
|