ordering-ui-react-native 0.21.10 → 0.21.11
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
|
@@ -576,15 +576,14 @@ export const OrderContentComponent = (props: OrderContent) => {
|
|
|
576
576
|
</Table>
|
|
577
577
|
))
|
|
578
578
|
}
|
|
579
|
-
{order?.summary?.driver_tip > 0 && (
|
|
579
|
+
{(order?.summary?.driver_tip > 0 || order?.driver_tip > 0) && (
|
|
580
580
|
<Table>
|
|
581
581
|
<OText mBottom={4}>
|
|
582
582
|
{t('DRIVER_TIP', 'Driver tip')}
|
|
583
|
-
{order?.
|
|
584
|
-
parseInt(configs?.driver_tip_type?.value, 10) === 2 &&
|
|
583
|
+
{order?.driver_tip > 0 && parseInt(configs?.driver_tip_type?.value, 10) === 2 &&
|
|
585
584
|
!parseInt(configs?.driver_tip_use_custom?.value, 10) &&
|
|
586
585
|
(
|
|
587
|
-
`(${verifyDecimals(order?.
|
|
586
|
+
`(${verifyDecimals(order?.driver_tip, parseNumber)}%)`
|
|
588
587
|
)}
|
|
589
588
|
</OText>
|
|
590
589
|
<OText mBottom={4}>{parsePrice(order?.summary?.driver_tip ?? order?.totalDriverTip, { currency: order?.currency })}</OText>
|
|
@@ -693,10 +693,16 @@ const BusinessesListingUI = (props: BusinessesListingParams) => {
|
|
|
693
693
|
};
|
|
694
694
|
|
|
695
695
|
export const BusinessesListing = (props: BusinessesListingParams) => {
|
|
696
|
+
|
|
696
697
|
const BusinessesListingProps = {
|
|
697
698
|
...props,
|
|
698
699
|
isForceSearch: Platform.OS === 'ios',
|
|
699
700
|
UIComponent: BusinessesListingUI,
|
|
701
|
+
paginationSettings: {
|
|
702
|
+
initialPage: 1,
|
|
703
|
+
pageSize: 50,
|
|
704
|
+
controlType: 'infinity'
|
|
705
|
+
}
|
|
700
706
|
};
|
|
701
707
|
|
|
702
708
|
return <BusinessesListingController {...BusinessesListingProps} />;
|