ordering-ui-react-native 0.14.74 → 0.14.77
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
|
@@ -316,6 +316,7 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
316
316
|
<View style={{ width: isSoldOut || maxProductQuantity <= 0 ? '100%' : '70%' }}>
|
|
317
317
|
{productCart && !isSoldOut && maxProductQuantity > 0 && auth && orderState.options?.address_id && (
|
|
318
318
|
<OButton
|
|
319
|
+
isDisabled={orderState.loading}
|
|
319
320
|
onClick={() => handleSaveProduct()}
|
|
320
321
|
imgRightSrc=''
|
|
321
322
|
text={`${orderState.loading ? t('LOADING', 'Loading') : editMode ? t('UPDATE', 'Update') : t('ADD_TO_CART', 'Add to Cart')} ${productCart.total ? parsePrice(productCart?.total) : ''}`}
|
|
@@ -110,7 +110,8 @@ const OrderProgressUI = (props: any) => {
|
|
|
110
110
|
const deliveryTime = order?.delivery_datetime_utc
|
|
111
111
|
? parseDate(order?.delivery_datetime_utc, { outputFormat: 'YYYY-MM-DD HH:mm' })
|
|
112
112
|
: parseDate(order?.delivery_datetime, { utc: false, outputFormat: 'YYYY-MM-DD HH:mm' })
|
|
113
|
-
const
|
|
113
|
+
const hour = time?.split(':')?.[0]
|
|
114
|
+
const minute = time?.split(':')?.[1]
|
|
114
115
|
const result = time ? (parseInt(hour, 10) * 60) + parseInt(minute, 10) : 0
|
|
115
116
|
const returnedDate = moment(deliveryTime).add(result, 'minutes').format('hh:mm A')
|
|
116
117
|
return returnedDate
|
|
@@ -90,7 +90,7 @@ const OInput = (props: Props): React.ReactElement => {
|
|
|
90
90
|
onSubmitEditing={props.onSubmitEditing}
|
|
91
91
|
blurOnSubmit={props.blurOnSubmit}
|
|
92
92
|
ref={(e : any) => {
|
|
93
|
-
props.forwardRef.current = e
|
|
93
|
+
props.forwardRef && (props.forwardRef.current = e)
|
|
94
94
|
}}
|
|
95
95
|
style={props?.inputStyle}
|
|
96
96
|
/>
|