ordering-ui-react-native 0.18.89 → 0.18.91
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 +1 -1
- package/themes/business/src/components/OrderDetails/Delivery.tsx +1 -1
- package/themes/business/src/components/PreviousOrders/OrderItem.tsx +1 -2
- package/themes/original/src/components/BusinessController/index.tsx +2 -1
- package/themes/original/src/components/BusinessController/styles.tsx +4 -5
- package/themes/original/src/components/BusinessListingSearch/index.tsx +1 -0
- package/themes/original/src/components/OrdersOption/index.tsx +1 -1
- package/themes/original/src/components/Wallets/index.tsx +1 -1
package/package.json
CHANGED
|
@@ -385,7 +385,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
385
385
|
}, [props.order?.loading]);
|
|
386
386
|
|
|
387
387
|
useEffect(() => {
|
|
388
|
-
if (order?.
|
|
388
|
+
if (!order?.driver_id && session?.user?.level === 4) {
|
|
389
389
|
setAlertState({
|
|
390
390
|
open: true,
|
|
391
391
|
content: [
|
|
@@ -94,8 +94,7 @@ export const OrderItem = (props: any) => {
|
|
|
94
94
|
});
|
|
95
95
|
|
|
96
96
|
const getDelayMinutes = (order: any) => {
|
|
97
|
-
const
|
|
98
|
-
const cdtToutc = moment(order?.delivery_datetime).add(offset, 'minutes').format('YYYY-MM-DD HH:mm:ss')
|
|
97
|
+
const cdtToutc = moment(order?.delivery_datetime).utc().format('YYYY-MM-DD HH:mm:ss')
|
|
99
98
|
const _delivery = order?.delivery_datetime_utc
|
|
100
99
|
? parseDate(order?.delivery_datetime_utc, { outputFormat: 'YYYY-MM-DD hh:mm A' })
|
|
101
100
|
: parseDate(cdtToutc, { outputFormat: 'YYYY-MM-DD hh:mm A' })
|
|
@@ -229,10 +229,11 @@ export const BusinessControllerUI = (props: BusinessControllerParams) => {
|
|
|
229
229
|
)}
|
|
230
230
|
{(!isCustomLayout) && !hideBusinessOffer && (
|
|
231
231
|
getBusinessOffer((business?.offers)) &&
|
|
232
|
-
<OfferBox>
|
|
232
|
+
<OfferBox isClosed={!isBusinessOpen && (configState?.configs?.preorder_status_enabled?.value === '1')}>
|
|
233
233
|
<OText
|
|
234
234
|
size={10}
|
|
235
235
|
weight={'400'}
|
|
236
|
+
color={theme.colors.textThird}
|
|
236
237
|
numberOfLines={2}
|
|
237
238
|
ellipsizeMode='tail'
|
|
238
239
|
lineHeight={13}
|
|
@@ -34,8 +34,8 @@ export const Metadata = styled.View`
|
|
|
34
34
|
|
|
35
35
|
export const BusinessState = styled.View`
|
|
36
36
|
position: absolute;
|
|
37
|
-
top:
|
|
38
|
-
|
|
37
|
+
top: 15px;
|
|
38
|
+
right: 15px;
|
|
39
39
|
`
|
|
40
40
|
|
|
41
41
|
export const BusinessLogo = styled.View`
|
|
@@ -85,10 +85,9 @@ export const RibbonBox = styled.View`
|
|
|
85
85
|
export const OfferBox = styled.View`
|
|
86
86
|
position: absolute;
|
|
87
87
|
z-index: 1;
|
|
88
|
-
top: 20px;
|
|
89
|
-
right: 10px;
|
|
90
88
|
border-radius: 50px;
|
|
91
|
-
|
|
89
|
+
top: 15px;
|
|
90
|
+
right: ${(props: any) => props.isClosed ? '110px' : '15px'};
|
|
92
91
|
background: ${(props: any) => props.theme.colors.inputBorderColor};
|
|
93
92
|
padding: 3px 8px;
|
|
94
93
|
max-width: 180px;
|
|
@@ -200,7 +200,7 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
200
200
|
|
|
201
201
|
return (
|
|
202
202
|
<>
|
|
203
|
-
{!loading && ordersLength.activeOrdersLength === 0 && ordersLength.previousOrdersLength === 0 && !activeOrders && (
|
|
203
|
+
{!loading && ordersLength.activeOrdersLength === 0 && ordersLength.previousOrdersLength === 0 && ordersLength?.preordersLength === 0 && !activeOrders && !preOrders && (
|
|
204
204
|
<NoOrdersWrapper>
|
|
205
205
|
<NotFoundSource
|
|
206
206
|
hideImage
|
|
@@ -143,7 +143,7 @@ const WalletsUI = (props: any) => {
|
|
|
143
143
|
btnStyle={{ paddingLeft: 0 }}
|
|
144
144
|
hideArrowLeft={!hideWalletsTheme}
|
|
145
145
|
/>
|
|
146
|
-
{isChewLayout && (
|
|
146
|
+
{isChewLayout && !openHistory && (
|
|
147
147
|
<OButton
|
|
148
148
|
text={t('WALLET_HISTORY', 'Wallet history')}
|
|
149
149
|
bgColor={theme.colors.white}
|