ordering-ui-react-native 0.21.7 → 0.21.9
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
|
@@ -96,8 +96,8 @@ export const OrderItem = (props: any) => {
|
|
|
96
96
|
const getDelayMinutes = (order: any) => {
|
|
97
97
|
const cdtToutc = moment(order?.delivery_datetime).utc().format('YYYY-MM-DD HH:mm:ss')
|
|
98
98
|
const _delivery = order?.delivery_datetime_utc
|
|
99
|
-
? parseDate(order?.delivery_datetime_utc
|
|
100
|
-
: parseDate(cdtToutc
|
|
99
|
+
? parseDate(order?.delivery_datetime_utc)
|
|
100
|
+
: parseDate(cdtToutc)
|
|
101
101
|
const _eta = order?.eta_time
|
|
102
102
|
const diffTimeAsSeconds = moment(_delivery, 'YYYY-MM-DD hh:mm A').add(_eta, 'minutes').diff(moment().utc(), 'seconds')
|
|
103
103
|
return Math.ceil(diffTimeAsSeconds / 60)
|
|
@@ -199,7 +199,7 @@ export const OrderItem = (props: any) => {
|
|
|
199
199
|
: (t('NO', 'Order No.') + order.id)
|
|
200
200
|
) + ' · '}
|
|
201
201
|
{order?.delivery_datetime_utc
|
|
202
|
-
? parseDate(order?.delivery_datetime_utc
|
|
202
|
+
? parseDate(order?.delivery_datetime_utc)
|
|
203
203
|
: parseDate(order?.delivery_datetime, { utc: false })}
|
|
204
204
|
</OText>
|
|
205
205
|
{((currentTabSelected === 'pending' || currentTabSelected === 'inProgress') && allowColumns?.timer) && (
|
|
@@ -375,7 +375,7 @@ const BusinessesListingUI = (props: BusinessesListingParams) => {
|
|
|
375
375
|
)}
|
|
376
376
|
<View style={{
|
|
377
377
|
height: !isPreOrderSetting && isChewLayout ? 150 : isChewLayout ? 200 : isFarAway ? 150 : 100,
|
|
378
|
-
marginTop: Platform.OS == 'ios' ? 0 : 50,
|
|
378
|
+
marginTop: isChewLayout ? 0 : Platform.OS == 'ios' ? 0 : 50,
|
|
379
379
|
backgroundColor: isChewLayout ? theme?.colors?.chew : theme.colors?.white
|
|
380
380
|
}}
|
|
381
381
|
>
|
|
@@ -613,7 +613,7 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
613
613
|
>
|
|
614
614
|
{(String(img).includes('http') || typeof img === 'number') ? (
|
|
615
615
|
<FastImage
|
|
616
|
-
style={{ height: '100%', opacity: isSoldOut ? 0.5 : 1, aspectRatio:
|
|
616
|
+
style={{ height: '100%', opacity: isSoldOut ? 0.5 : 1, aspectRatio: 16 / 9 }}
|
|
617
617
|
source={typeof img !== 'number' ? {
|
|
618
618
|
uri: optimizeImage(img, 'h_1024,c_limit'),
|
|
619
619
|
priority: FastImage.priority.normal,
|