ordering-ui-react-native 0.17.96-release → 0.17.97-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
|
@@ -115,6 +115,10 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
115
115
|
readMessages && readMessages();
|
|
116
116
|
};
|
|
117
117
|
|
|
118
|
+
const goToPermissionPage = () => {
|
|
119
|
+
navigation.navigate('RequestPermissions')
|
|
120
|
+
}
|
|
121
|
+
|
|
118
122
|
const handleOpenMapView = async () => {
|
|
119
123
|
if (!isGrantedPermissions) {
|
|
120
124
|
navigation.navigate('RequestPermissions')
|
|
@@ -478,7 +482,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
478
482
|
textStyle={{ color: theme.colors.primary }}
|
|
479
483
|
text={t('ARRIVED_TO_BUSINESS', 'Arrived to bussiness')}
|
|
480
484
|
onClick={() =>
|
|
481
|
-
handleChangeOrderStatus && handleChangeOrderStatus(3)
|
|
485
|
+
handleChangeOrderStatus && isGrantedPermissions ? handleChangeOrderStatus(3) : goToPermissionPage()
|
|
482
486
|
}
|
|
483
487
|
imgLeftStyle={{ tintColor: theme.colors.backArrow }}
|
|
484
488
|
/>
|
|
@@ -570,7 +574,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
570
574
|
btnText={t('PICKUP_FAILED', 'Pickup failed')}
|
|
571
575
|
isSecondaryBtn={false}
|
|
572
576
|
secondButtonClick={() =>
|
|
573
|
-
handleChangeOrderStatus && handleChangeOrderStatus(9)
|
|
577
|
+
handleChangeOrderStatus && isGrantedPermissions ? handleChangeOrderStatus(9) : goToPermissionPage()
|
|
574
578
|
}
|
|
575
579
|
firstButtonClick={() =>
|
|
576
580
|
handleViewActionOrder && handleViewActionOrder('pickupFailed')
|
|
@@ -590,7 +594,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
590
594
|
btnText={t('DELIVERY_FAILED', 'Delivery Failed')}
|
|
591
595
|
isSecondaryBtn={false}
|
|
592
596
|
secondButtonClick={() =>
|
|
593
|
-
handleChangeOrderStatus && handleChangeOrderStatus(11)
|
|
597
|
+
handleChangeOrderStatus && isGrantedPermissions ? handleChangeOrderStatus(11) : goToPermissionPage()
|
|
594
598
|
}
|
|
595
599
|
firstButtonClick={() =>
|
|
596
600
|
handleViewActionOrder && handleViewActionOrder('deliveryFailed')
|