ordering-ui-external 8.0.1 → 8.0.3
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/_bundles/{7.ordering-ui.3242caad59e9f3bc9c35.js → 7.ordering-ui.ab1b4de01911e1ef2765.js} +1 -1
- package/_bundles/ordering-ui.ab1b4de01911e1ef2765.js +2 -0
- package/_modules/themes/callcenterOriginal/src/components/CartContent/index.js +4 -2
- package/_modules/themes/callcenterOriginal/src/components/CartPopover/index.js +1 -0
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/OrdersSection/index.js +13 -0
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +1 -0
- package/_modules/themes/five/src/components/Cart/index.js +17 -7
- package/_modules/themes/five/src/components/CartContent/index.js +4 -2
- package/_modules/themes/five/src/components/CartPopover/index.js +4 -2
- package/_modules/themes/five/src/components/HorizontalOrdersLayout/index.js +10 -5
- package/_modules/themes/five/src/components/HorizontalOrdersLayout/styles.js +51 -45
- package/_modules/themes/five/src/components/OrdersOption/index.js +2 -1
- package/_modules/themes/five/src/components/ReviewProduct/index.js +1 -1
- package/package.json +2 -2
- package/src/themes/callcenterOriginal/src/components/CartContent/index.js +3 -1
- package/src/themes/callcenterOriginal/src/components/CartPopover/index.js +1 -0
- package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/OrdersSection/index.js +14 -0
- package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +1 -0
- package/src/themes/five/src/components/Cart/index.js +18 -13
- package/src/themes/five/src/components/CartContent/index.js +3 -1
- package/src/themes/five/src/components/CartPopover/index.js +2 -0
- package/src/themes/five/src/components/HorizontalOrdersLayout/index.js +7 -6
- package/src/themes/five/src/components/HorizontalOrdersLayout/styles.js +7 -0
- package/src/themes/five/src/components/OrdersOption/index.js +9 -8
- package/src/themes/five/src/components/ReviewProduct/index.js +1 -1
- package/_bundles/ordering-ui.3242caad59e9f3bc9c35.js +0 -2
- /package/_bundles/{0.ordering-ui.3242caad59e9f3bc9c35.js → 0.ordering-ui.ab1b4de01911e1ef2765.js} +0 -0
- /package/_bundles/{1.ordering-ui.3242caad59e9f3bc9c35.js → 1.ordering-ui.ab1b4de01911e1ef2765.js} +0 -0
- /package/_bundles/{2.ordering-ui.3242caad59e9f3bc9c35.js → 2.ordering-ui.ab1b4de01911e1ef2765.js} +0 -0
- /package/_bundles/{4.ordering-ui.3242caad59e9f3bc9c35.js → 4.ordering-ui.ab1b4de01911e1ef2765.js} +0 -0
- /package/_bundles/{5.ordering-ui.3242caad59e9f3bc9c35.js → 5.ordering-ui.ab1b4de01911e1ef2765.js} +0 -0
- /package/_bundles/{6.ordering-ui.3242caad59e9f3bc9c35.js → 6.ordering-ui.ab1b4de01911e1ef2765.js} +0 -0
- /package/_bundles/{7.ordering-ui.3242caad59e9f3bc9c35.js.LICENSE.txt → 7.ordering-ui.ab1b4de01911e1ef2765.js.LICENSE.txt} +0 -0
- /package/_bundles/{8.ordering-ui.3242caad59e9f3bc9c35.js → 8.ordering-ui.ab1b4de01911e1ef2765.js} +0 -0
- /package/_bundles/{9.ordering-ui.3242caad59e9f3bc9c35.js → 9.ordering-ui.ab1b4de01911e1ef2765.js} +0 -0
- /package/_bundles/{ordering-ui.3242caad59e9f3bc9c35.js.LICENSE.txt → ordering-ui.ab1b4de01911e1ef2765.js.LICENSE.txt} +0 -0
|
@@ -66,7 +66,7 @@ const OrdersOptionUI = (props) => {
|
|
|
66
66
|
businesses,
|
|
67
67
|
handleUpdateBusinesses,
|
|
68
68
|
getPage,
|
|
69
|
-
loadOrders
|
|
69
|
+
loadOrders
|
|
70
70
|
} = props
|
|
71
71
|
|
|
72
72
|
const [, t] = useLanguage()
|
|
@@ -74,7 +74,7 @@ const OrdersOptionUI = (props) => {
|
|
|
74
74
|
const [events] = useEvent()
|
|
75
75
|
const { width } = useWindowSize()
|
|
76
76
|
const { loading, error, orders: values } = orderList
|
|
77
|
-
const [refreshOrders
|
|
77
|
+
const [refreshOrders, setRefreshOrders] = useState(false)
|
|
78
78
|
|
|
79
79
|
const _orders = customArray || values || []
|
|
80
80
|
const uniqueOrders = []
|
|
@@ -189,11 +189,11 @@ const OrdersOptionUI = (props) => {
|
|
|
189
189
|
}, [reorderState])
|
|
190
190
|
|
|
191
191
|
useEffect(() => {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
192
|
+
if (refreshOrders) {
|
|
193
|
+
loadOrders(false, false, false, true)
|
|
194
|
+
setRefreshOrders(false)
|
|
195
|
+
}
|
|
196
|
+
}, [refreshOrders])
|
|
197
197
|
|
|
198
198
|
return (
|
|
199
199
|
<>
|
|
@@ -336,6 +336,7 @@ const OrdersOptionUI = (props) => {
|
|
|
336
336
|
isCustomerMode={isCustomerMode}
|
|
337
337
|
isBusiness={isBusiness}
|
|
338
338
|
isProducts={isProducts}
|
|
339
|
+
titleContent={titleContent}
|
|
339
340
|
handleChangePage={handleChangePage}
|
|
340
341
|
/>
|
|
341
342
|
) : (
|
|
@@ -386,7 +387,7 @@ export const OrdersOption = (props) => {
|
|
|
386
387
|
useDefualtSessionManager: true,
|
|
387
388
|
paginationSettings: {
|
|
388
389
|
initialPage: 1,
|
|
389
|
-
pageSize: (getAllOrders || props.activeOrders) ? 30 : 10,
|
|
390
|
+
pageSize: (getAllOrders || (props.activeOrders && !props.isBusinessesPage)) ? 30 : 10,
|
|
390
391
|
controlType: 'infinity'
|
|
391
392
|
}
|
|
392
393
|
}
|