ordering-ui-react-native 0.17.73 → 0.17.74
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
|
@@ -180,6 +180,7 @@ export const OrderContentComponent = (props: OrderContent) => {
|
|
|
180
180
|
ios: `maps:0,0?q=${order?.business?.address}`,
|
|
181
181
|
android: `geo:0,0?q=${order?.business?.address}`,
|
|
182
182
|
})}
|
|
183
|
+
numberOfLines={2}
|
|
183
184
|
shorcut={order?.business?.address}
|
|
184
185
|
TextStyle={styles.textLink}
|
|
185
186
|
/>
|
|
@@ -304,6 +305,7 @@ export const OrderContentComponent = (props: OrderContent) => {
|
|
|
304
305
|
ios: `maps:0,0?q=${order?.customer?.address}`,
|
|
305
306
|
android: `geo:0,0?q=${order?.customer?.address}`,
|
|
306
307
|
})}
|
|
308
|
+
numberOfLines={2}
|
|
307
309
|
shorcut={order?.customer?.address}
|
|
308
310
|
TextStyle={styles.textLink}
|
|
309
311
|
/>
|
|
@@ -366,7 +366,7 @@ export const PreviousOrders = (props: any) => {
|
|
|
366
366
|
})}
|
|
367
367
|
/>
|
|
368
368
|
)}
|
|
369
|
-
{deliveryPickupBtn?.includes(_ordersGrouped[k][0]?.status) && (
|
|
369
|
+
{deliveryPickupBtn && deliveryPickupBtn?.includes(_ordersGrouped[k][0]?.status) && (
|
|
370
370
|
<AcceptOrRejectOrderStyle>
|
|
371
371
|
<OButton
|
|
372
372
|
text={t('PICKUP_FAILED', 'Pickup failed')}
|
|
@@ -398,7 +398,7 @@ export const PreviousOrders = (props: any) => {
|
|
|
398
398
|
/>
|
|
399
399
|
</AcceptOrRejectOrderStyle>
|
|
400
400
|
)}
|
|
401
|
-
{deliveryStatusCompleteBtn.includes(_ordersGrouped[k][0]?.status) && (
|
|
401
|
+
{deliveryStatusCompleteBtn && deliveryStatusCompleteBtn.includes(_ordersGrouped[k][0]?.status) && (
|
|
402
402
|
<AcceptOrRejectOrderStyle>
|
|
403
403
|
<OButton
|
|
404
404
|
text={t('DELIVERY_FAILED', 'Delivery Failed')}
|
|
@@ -12,10 +12,11 @@ interface Props {
|
|
|
12
12
|
TextStyle?: TextStyle;
|
|
13
13
|
type?: string;
|
|
14
14
|
hasButton?: boolean;
|
|
15
|
+
numberOfLines?: number;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
const OLink = (props: Props): React.ReactElement => {
|
|
18
|
-
const { url, shorcut, color, PressStyle, TextStyle, type, hasButton } = props;
|
|
19
|
+
const { url, shorcut, color, PressStyle, TextStyle, type, hasButton, numberOfLines } = props;
|
|
19
20
|
const [, t] = useLanguage();
|
|
20
21
|
|
|
21
22
|
const handleAlert = () =>
|
|
@@ -75,7 +76,7 @@ const OLink = (props: Props): React.ReactElement => {
|
|
|
75
76
|
) : (
|
|
76
77
|
<OText
|
|
77
78
|
style={TextStyle}
|
|
78
|
-
numberOfLines={1}
|
|
79
|
+
numberOfLines={numberOfLines ?? 1}
|
|
79
80
|
ellipsizeMode="tail"
|
|
80
81
|
color={color}>
|
|
81
82
|
{shorcut}
|