ordering-ui-react-native 0.17.61-release → 0.17.62-release
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
|
@@ -80,6 +80,9 @@ export const OrderSummary = ({ order, navigation, orderStatus, askBluetoothPermi
|
|
|
80
80
|
!parseInt(configs?.driver_tip_use_custom?.value, 10) &&
|
|
81
81
|
verifyDecimals(order?.summary?.driver_tip, parseNumber);
|
|
82
82
|
|
|
83
|
+
const customerName = `${order?.customer?.name ?? ''} ${order?.customer?.middle_name ?? ''} ${order?.customer?.lastname ?? ''} ${order?.customer?.second_lastname ?? ''
|
|
84
|
+
}`?.replace(' ', ' ')?.trim() ?? ''
|
|
85
|
+
|
|
83
86
|
const orderSummary = () => {
|
|
84
87
|
return `
|
|
85
88
|
<div>
|
|
@@ -100,9 +103,7 @@ export const OrderSummary = ({ order, navigation, orderStatus, askBluetoothPermi
|
|
|
100
103
|
</p>
|
|
101
104
|
|
|
102
105
|
<h1>${t('CUSTOMER_DETAILS', 'Customer details')}</h1>
|
|
103
|
-
<p style="font-size: 27px"> ${t('FULL_NAME', 'Full Name')}: ${
|
|
104
|
-
} ${order?.customer?.middle_name} ${order?.customer?.lastname} ${order?.customer?.second_lastname
|
|
105
|
-
}
|
|
106
|
+
<p style="font-size: 27px"> ${t('FULL_NAME', 'Full Name')}: ${customerName}
|
|
106
107
|
</br>
|
|
107
108
|
${t('EMAIL', 'Email')}: ${order?.customer?.email}
|
|
108
109
|
</br>
|
|
@@ -373,8 +374,8 @@ export const OrderSummary = ({ order, navigation, orderStatus, askBluetoothPermi
|
|
|
373
374
|
|
|
374
375
|
<OText style={{ marginBottom: 5 }}>
|
|
375
376
|
{`${t('DELIVERY_DATE', 'Delivery Date')}: ${order?.delivery_datetime_utc
|
|
376
|
-
|
|
377
|
-
|
|
377
|
+
? parseDate(order?.delivery_datetime_utc)
|
|
378
|
+
: parseDate(order?.delivery_datetime, { utc: false })
|
|
378
379
|
}`}
|
|
379
380
|
</OText>
|
|
380
381
|
|
|
@@ -400,9 +401,7 @@ export const OrderSummary = ({ order, navigation, orderStatus, askBluetoothPermi
|
|
|
400
401
|
adjustsFontSizeToFit
|
|
401
402
|
ellipsizeMode="tail"
|
|
402
403
|
color={theme.colors.textGray}>
|
|
403
|
-
{`${t('FULL_NAME', 'Full Name')}: ${
|
|
404
|
-
} ${order?.customer?.lastname} ${order?.customer?.second_lastname
|
|
405
|
-
}`}
|
|
404
|
+
{`${t('FULL_NAME', 'Full Name')}: ${customerName}`}
|
|
406
405
|
</OText>
|
|
407
406
|
|
|
408
407
|
<OText
|