ordering-ui-external 1.7.1 → 1.8.0
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/0.ordering-ui.a7de4e953ec3c5879d9b.js +1 -0
- package/_bundles/{1.ordering-ui.8b7044a2b34939a44465.js → 1.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
- package/_bundles/2.ordering-ui.a7de4e953ec3c5879d9b.js +1 -0
- package/_bundles/{4.ordering-ui.8b7044a2b34939a44465.js → 4.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
- package/_bundles/{5.ordering-ui.8b7044a2b34939a44465.js → 5.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
- package/_bundles/{6.ordering-ui.8b7044a2b34939a44465.js → 6.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
- package/_bundles/{7.ordering-ui.8b7044a2b34939a44465.js → 7.ordering-ui.a7de4e953ec3c5879d9b.js} +2 -2
- package/_bundles/{7.ordering-ui.8b7044a2b34939a44465.js.LICENSE.txt → 7.ordering-ui.a7de4e953ec3c5879d9b.js.LICENSE.txt} +0 -0
- package/_bundles/{8.ordering-ui.8b7044a2b34939a44465.js → 8.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
- package/_bundles/{9.ordering-ui.8b7044a2b34939a44465.js → 9.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
- package/_bundles/ordering-ui.a7de4e953ec3c5879d9b.js +2 -0
- package/_bundles/{ordering-ui.8b7044a2b34939a44465.js.LICENSE.txt → ordering-ui.a7de4e953ec3c5879d9b.js.LICENSE.txt} +0 -0
- package/_modules/components/BusinessInformation/index.js +4 -8
- package/_modules/components/OrdersOption/styles.js +4 -2
- package/_modules/components/Pagination/index.js +100 -0
- package/_modules/components/Pagination/styles.js +56 -0
- package/_modules/components/SmartAppBanner/index.js +2 -1
- package/_modules/components/VerticalOrdersLayout/SingleOrderCard/index.js +92 -0
- package/_modules/components/VerticalOrdersLayout/index.js +115 -41
- package/_modules/components/VerticalOrdersLayout/styles.js +25 -11
- package/_modules/index.js +7 -0
- package/_modules/themes/five/src/components/AccordionDropdown/index.js +15 -4
- package/_modules/themes/five/src/components/AccordionDropdown/styles.js +14 -4
- package/_modules/themes/five/src/components/AddressList/styles.js +2 -2
- package/_modules/themes/five/src/components/BusinessBasicInformation/index.js +17 -10
- package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +48 -42
- package/_modules/themes/five/src/components/BusinessListingSearch/index.js +5 -1
- package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +0 -3
- package/_modules/themes/five/src/components/BusinessProductsCategories/layouts/groceries/index.js +22 -13
- package/_modules/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js +15 -7
- package/_modules/themes/five/src/components/BusinessProductsListing/index.js +3 -0
- package/_modules/themes/five/src/components/BusinessTypeFilter/index.js +15 -5
- package/_modules/themes/five/src/components/BusinessesListing/index.js +6 -13
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +66 -40
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +13 -7
- package/_modules/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/index.js +16 -7
- package/_modules/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/styles.js +21 -15
- package/_modules/themes/five/src/components/CardForm/index.js +17 -3
- package/_modules/themes/five/src/components/CardForm/styles.js +14 -6
- package/_modules/themes/five/src/components/CartPopover/index.js +6 -4
- package/_modules/themes/five/src/components/CartPopover/styles.js +4 -2
- package/_modules/themes/five/src/components/Footer/index.js +16 -6
- package/_modules/themes/five/src/components/Footer/styles.js +11 -9
- package/_modules/themes/five/src/components/Header/index.js +14 -9
- package/_modules/themes/five/src/components/Header/styles.js +64 -44
- package/_modules/themes/five/src/components/HeaderOption/index.js +9 -2
- package/_modules/themes/five/src/components/HeaderOption/styles.js +8 -2
- package/_modules/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +9 -3
- package/_modules/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/styles.js +5 -3
- package/_modules/themes/five/src/components/HorizontalOrdersLayout/index.js +9 -19
- package/_modules/themes/five/src/components/HorizontalOrdersLayout/styles.js +23 -19
- package/_modules/themes/five/src/components/InputPhoneNumber/index.js +1 -0
- package/_modules/themes/five/src/components/LoginForm/index.js +3 -2
- package/_modules/themes/five/src/components/MomentControl/index.js +4 -2
- package/_modules/themes/five/src/components/MyOrders/index.js +24 -56
- package/_modules/themes/five/src/components/MyOrders/styles.js +1 -1
- package/_modules/themes/five/src/components/OrderDetails/index.js +5 -2
- package/_modules/themes/five/src/components/OrderDetails/styles.js +24 -24
- package/_modules/themes/five/src/components/OrderItAgain/styles.js +6 -2
- package/_modules/themes/five/src/components/OrdersOption/index.js +18 -18
- package/_modules/themes/five/src/components/OrdersOption/styles.js +2 -2
- package/_modules/themes/five/src/components/PageBanner/index.js +50 -0
- package/_modules/themes/five/src/components/PageBanner/styles.js +18 -0
- package/_modules/themes/five/src/components/Pagination/index.js +99 -0
- package/_modules/themes/five/src/components/Pagination/styles.js +56 -0
- package/_modules/themes/five/src/components/ProductForm/index.js +39 -23
- package/_modules/themes/five/src/components/ProductForm/styles.js +74 -38
- package/_modules/themes/five/src/components/Promotions/index.js +7 -2
- package/_modules/themes/five/src/components/Promotions/styles.js +16 -14
- package/_modules/themes/five/src/components/RenderProductsLayout/index.js +31 -10
- package/_modules/themes/five/src/components/RenderProductsLayout/styles.js +19 -11
- package/_modules/themes/five/src/components/SidebarMenu/styles.js +1 -1
- package/_modules/themes/five/src/components/SignUpForm/index.js +3 -2
- package/_modules/themes/five/src/components/SingleOrderCard/index.js +7 -17
- package/_modules/themes/five/src/components/SingleProductCard/index.js +7 -298
- package/_modules/themes/five/src/components/SingleProductCard/layouts/original/index.js +310 -0
- package/_modules/themes/five/src/components/SingleProductCard/{styles.js → layouts/original/styles.js} +36 -32
- package/_modules/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +305 -0
- package/_modules/themes/five/src/components/SingleProductCard/layouts/starbucks/styles.js +143 -0
- package/_modules/themes/five/src/components/StripeElementsForm/index.js +1 -0
- package/_modules/themes/five/src/components/UserPopover/index.js +3 -1
- package/_modules/themes/five/src/components/UserPopover/styles.js +4 -3
- package/_modules/themes/five/src/components/UserProfileForm/styles.js +5 -8
- package/_modules/themes/six/src/components/BusinessController/index.js +81 -15
- package/_modules/themes/six/src/components/BusinessController/styles.js +58 -30
- package/_modules/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +5 -3
- package/_modules/themes/six/src/components/BusinessesMap/styles.js +1 -1
- package/_modules/themes/six/src/components/SearchBar/index.js +19 -10
- package/_modules/themes/six/src/components/SearchBar/styles.js +44 -16
- package/index-template.js +3 -1
- package/package.json +2 -2
- package/src/components/BusinessInformation/index.js +3 -8
- package/src/components/OrdersOption/styles.js +5 -5
- package/src/components/Pagination/index.js +107 -0
- package/src/components/Pagination/styles.js +106 -0
- package/src/components/SmartAppBanner/index.js +1 -0
- package/src/components/VerticalOrdersLayout/SingleOrderCard/index.js +89 -0
- package/src/components/VerticalOrdersLayout/index.js +86 -48
- package/src/components/VerticalOrdersLayout/styles.js +66 -22
- package/src/index.js +2 -0
- package/src/themes/five/src/components/AccordionDropdown/index.js +19 -6
- package/src/themes/five/src/components/AccordionDropdown/styles.js +25 -1
- package/src/themes/five/src/components/AddressList/styles.js +2 -0
- package/src/themes/five/src/components/BusinessBasicInformation/index.js +21 -11
- package/src/themes/five/src/components/BusinessBasicInformation/styles.js +9 -3
- package/src/themes/five/src/components/BusinessListingSearch/index.js +1 -0
- package/src/themes/five/src/components/BusinessProductsCategories/index.js +0 -2
- package/src/themes/five/src/components/BusinessProductsCategories/layouts/groceries/index.js +23 -12
- package/src/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js +12 -4
- package/src/themes/five/src/components/BusinessProductsListing/index.js +3 -0
- package/src/themes/five/src/components/BusinessTypeFilter/index.js +15 -5
- package/src/themes/five/src/components/BusinessesListing/index.js +5 -5
- package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +54 -25
- package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +40 -26
- package/src/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/index.js +19 -6
- package/src/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/styles.js +38 -3
- package/src/themes/five/src/components/CardForm/index.js +49 -8
- package/src/themes/five/src/components/CardForm/styles.js +20 -2
- package/src/themes/five/src/components/CartPopover/index.js +2 -1
- package/src/themes/five/src/components/CartPopover/styles.js +3 -3
- package/src/themes/five/src/components/Footer/index.js +15 -6
- package/src/themes/five/src/components/Footer/styles.js +15 -14
- package/src/themes/five/src/components/Header/index.js +6 -4
- package/src/themes/five/src/components/Header/styles.js +14 -11
- package/src/themes/five/src/components/HeaderOption/index.js +13 -10
- package/src/themes/five/src/components/HeaderOption/styles.js +2 -2
- package/src/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +22 -10
- package/src/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/styles.js +8 -0
- package/src/themes/five/src/components/HorizontalOrdersLayout/index.js +24 -36
- package/src/themes/five/src/components/HorizontalOrdersLayout/styles.js +12 -1
- package/src/themes/five/src/components/InputPhoneNumber/index.js +1 -0
- package/src/themes/five/src/components/LoginForm/index.js +2 -1
- package/src/themes/five/src/components/MomentControl/index.js +3 -2
- package/src/themes/five/src/components/MyOrders/index.js +20 -62
- package/src/themes/five/src/components/MyOrders/styles.js +1 -2
- package/src/themes/five/src/components/OrderDetails/index.js +9 -0
- package/src/themes/five/src/components/OrderDetails/styles.js +0 -55
- package/src/themes/five/src/components/OrderItAgain/styles.js +18 -0
- package/src/themes/five/src/components/OrdersOption/index.js +10 -16
- package/src/themes/five/src/components/OrdersOption/styles.js +1 -3
- package/src/themes/five/src/components/PageBanner/index.js +58 -0
- package/src/themes/five/src/components/PageBanner/styles.js +58 -0
- package/src/themes/five/src/components/Pagination/index.js +106 -0
- package/src/themes/five/src/components/Pagination/styles.js +106 -0
- package/src/themes/five/src/components/ProductForm/index.js +108 -84
- package/src/themes/five/src/components/ProductForm/styles.js +94 -12
- package/src/themes/five/src/components/Promotions/index.js +22 -16
- package/src/themes/five/src/components/Promotions/styles.js +10 -4
- package/src/themes/five/src/components/RenderProductsLayout/index.js +94 -66
- package/src/themes/five/src/components/RenderProductsLayout/styles.js +23 -22
- package/src/themes/five/src/components/SidebarMenu/styles.js +1 -1
- package/src/themes/five/src/components/SignUpForm/index.js +2 -1
- package/src/themes/five/src/components/SingleOrderCard/index.js +0 -21
- package/src/themes/five/src/components/SingleProductCard/index.js +7 -300
- package/src/themes/five/src/components/SingleProductCard/layouts/original/index.js +312 -0
- package/src/themes/five/src/components/SingleProductCard/{styles.js → layouts/original/styles.js} +9 -5
- package/src/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +313 -0
- package/src/themes/five/src/components/SingleProductCard/layouts/starbucks/styles.js +353 -0
- package/src/themes/five/src/components/StripeElementsForm/index.js +1 -0
- package/src/themes/five/src/components/UserPopover/index.js +2 -0
- package/src/themes/five/src/components/UserPopover/styles.js +2 -2
- package/src/themes/five/src/components/UserProfileForm/styles.js +3 -11
- package/src/themes/six/src/components/BusinessController/index.js +163 -62
- package/src/themes/six/src/components/BusinessController/styles.js +53 -14
- package/src/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +3 -1
- package/src/themes/six/src/components/BusinessesMap/styles.js +1 -1
- package/src/themes/six/src/components/SearchBar/index.js +27 -8
- package/src/themes/six/src/components/SearchBar/styles.js +33 -2
- package/template/app.js +364 -364
- package/template/assets/images/chew_logo.png +0 -0
- package/template/components/HelmetTags/index.js +5 -4
- package/_bundles/0.ordering-ui.8b7044a2b34939a44465.js +0 -1
- package/_bundles/2.ordering-ui.8b7044a2b34939a44465.js +0 -1
- package/_bundles/ordering-ui.8b7044a2b34939a44465.js +0 -2
|
@@ -12,7 +12,6 @@ export const FooterWrapper = styled.div`
|
|
|
12
12
|
flex-wrap: wrap;
|
|
13
13
|
flex-direction: column;
|
|
14
14
|
border-bottom: 1px solid #d9d9d9;
|
|
15
|
-
|
|
16
15
|
@media (min-width: 768px) {
|
|
17
16
|
flex-direction: row;
|
|
18
17
|
justify-content: flex-start;
|
|
@@ -24,13 +23,11 @@ export const Content = styled.div`
|
|
|
24
23
|
width: 100%;
|
|
25
24
|
text-align: center;
|
|
26
25
|
margin-bottom: 10px;
|
|
27
|
-
|
|
28
26
|
> h4 {
|
|
29
27
|
font-weight: 600;
|
|
30
28
|
font-size: 16px;
|
|
31
29
|
margin: 20px 0px 15px 0px;
|
|
32
30
|
}
|
|
33
|
-
|
|
34
31
|
> div {
|
|
35
32
|
margin: 10px 0;
|
|
36
33
|
> a {
|
|
@@ -40,16 +37,12 @@ export const Content = styled.div`
|
|
|
40
37
|
text-decoration: none;
|
|
41
38
|
color: #344050;
|
|
42
39
|
transition: all 0.2s linear;
|
|
43
|
-
|
|
44
40
|
&:hover {
|
|
45
41
|
color: ${props => props.theme.colors.primary};
|
|
46
42
|
text-decoration: underline;
|
|
47
43
|
}
|
|
48
44
|
}
|
|
49
45
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
46
|
@media (min-width: 768px) {
|
|
54
47
|
width: 50%;
|
|
55
48
|
text-align: left;
|
|
@@ -57,7 +50,6 @@ export const Content = styled.div`
|
|
|
57
50
|
text-align: right;
|
|
58
51
|
`}
|
|
59
52
|
}
|
|
60
|
-
|
|
61
53
|
@media (min-width: 992px) {
|
|
62
54
|
width: 25%;
|
|
63
55
|
margin: 0;
|
|
@@ -69,7 +61,6 @@ export const FooterBottom = styled.div`
|
|
|
69
61
|
justify-content: space-between;
|
|
70
62
|
align-items: center;
|
|
71
63
|
flex-direction: column;
|
|
72
|
-
|
|
73
64
|
@media (min-width: 768px) {
|
|
74
65
|
flex-direction: row;
|
|
75
66
|
}
|
|
@@ -84,7 +75,6 @@ export const Description = styled.div`
|
|
|
84
75
|
export const SocialIconList = styled.div`
|
|
85
76
|
display: flex;
|
|
86
77
|
align-items: center;
|
|
87
|
-
|
|
88
78
|
@media (min-width: 1400px) {
|
|
89
79
|
width: 25%;
|
|
90
80
|
justify-content: space-between;
|
|
@@ -100,7 +90,6 @@ export const LanguageWrapper = styled.div`
|
|
|
100
90
|
margin-left: 15px;
|
|
101
91
|
margin-right: 0px;
|
|
102
92
|
`}
|
|
103
|
-
|
|
104
93
|
svg {
|
|
105
94
|
font-size: 20px;
|
|
106
95
|
}
|
|
@@ -108,7 +97,6 @@ export const LanguageWrapper = styled.div`
|
|
|
108
97
|
background-color: transparent !important;
|
|
109
98
|
border: none;
|
|
110
99
|
color: #344050 !important;
|
|
111
|
-
|
|
112
100
|
> div:first-child {
|
|
113
101
|
font-size: 14px;
|
|
114
102
|
text-decoration: underline;
|
|
@@ -132,7 +120,6 @@ export const LanguageWrapper = styled.div`
|
|
|
132
120
|
export const SocialGroup = styled.div`
|
|
133
121
|
display: flex;
|
|
134
122
|
align-items: center;
|
|
135
|
-
|
|
136
123
|
a {
|
|
137
124
|
color: #344050;
|
|
138
125
|
display: flex;
|
|
@@ -145,10 +132,24 @@ export const SocialGroup = styled.div`
|
|
|
145
132
|
font-size: 20px;
|
|
146
133
|
}
|
|
147
134
|
transition: all 0.3s ease;
|
|
148
|
-
|
|
149
135
|
&:hover {
|
|
150
136
|
transform: scale(1.04);
|
|
151
137
|
color: ${props => props.theme.colors.primary};
|
|
152
138
|
}
|
|
153
139
|
}
|
|
154
140
|
`
|
|
141
|
+
|
|
142
|
+
export const PoweredByOrdering = styled.p`
|
|
143
|
+
text-align: center;
|
|
144
|
+
margin: 0;
|
|
145
|
+
display: flex;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
bottom: 0;
|
|
148
|
+
left: 0;
|
|
149
|
+
right: 0;
|
|
150
|
+
white-space: pre;
|
|
151
|
+
margin-bottom: 10px;
|
|
152
|
+
a{
|
|
153
|
+
font-weight: 600;
|
|
154
|
+
}
|
|
155
|
+
`
|
|
@@ -93,6 +93,7 @@ export const Header = (props) => {
|
|
|
93
93
|
const orderTypeList = [t('DELIVERY', 'Delivery'), t('PICKUP', 'Pickup'), t('EAT_IN', 'Eat in'), t('CURBSIDE', 'Curbside'), t('DRIVE_THRU', 'Drive thru')]
|
|
94
94
|
const configTypes = configState?.configs?.order_types_allowed?.value.split('|').map(value => Number(value)) || []
|
|
95
95
|
const isPreOrderSetting = configState?.configs?.preorder_status_enabled?.value === '1'
|
|
96
|
+
const isChew = orderingTheme?.theme?.header?.components?.layout?.type === 'Chew'
|
|
96
97
|
|
|
97
98
|
const handleSuccessSignup = (user) => {
|
|
98
99
|
login({
|
|
@@ -212,7 +213,7 @@ export const Header = (props) => {
|
|
|
212
213
|
</React.Fragment>))}
|
|
213
214
|
{props.beforeComponents?.map((BeforeComponent, i) => (
|
|
214
215
|
<BeforeComponent key={i} {...props} />))}
|
|
215
|
-
<HeaderContainer>
|
|
216
|
+
<HeaderContainer isChew={isChew}>
|
|
216
217
|
<InnerHeader>
|
|
217
218
|
<LeftHeader id='left-side'>
|
|
218
219
|
<SidebarMenu
|
|
@@ -223,13 +224,14 @@ export const Header = (props) => {
|
|
|
223
224
|
/>
|
|
224
225
|
<LogoHeader
|
|
225
226
|
onClick={() => handleGoToPage({ page: orderState?.options?.address?.location && !isCustomerMode ? 'search' : 'home' })}
|
|
227
|
+
isChew={isChew}
|
|
226
228
|
>
|
|
227
|
-
<img alt='Logotype' width='170px' height='45px' src={orderingTheme?.my_products?.components?.images?.components?.logo?.components?.image || theme?.images?.logos?.logotype} loading='lazy' />
|
|
228
|
-
<img alt='Isotype' width='35px' height='45px' src={orderingTheme?.my_products?.components?.images?.components?.logo?.components?.image || (isHome ? theme?.images?.logos?.isotypeInvert : theme?.images?.logos?.isotype)} loading='lazy' />
|
|
229
|
+
<img alt='Logotype' width='170px' height={isChew ? '35px' : '45px'} src={isChew ? theme?.images?.logos?.chewLogo : orderingTheme?.my_products?.components?.images?.components?.logo?.components?.image || theme?.images?.logos?.logotype} loading='lazy' />
|
|
230
|
+
<img alt='Isotype' width={isChew ? '70px' : '35px'} height={isChew ? '20px' : '45px'} src={isChew ? theme?.images?.logos?.chewLogo : orderingTheme?.my_products?.components?.images?.components?.logo?.components?.image || (isHome ? theme?.images?.logos?.isotypeInvert : theme?.images?.logos?.isotype)} loading='lazy' />
|
|
229
231
|
</LogoHeader>
|
|
230
232
|
</LeftHeader>
|
|
231
233
|
{isShowOrderOptions && !props.isCustomLayout && (
|
|
232
|
-
<Menu id='center-side' className='left-header' isCustomerMode={isCustomerMode}>
|
|
234
|
+
<Menu id='center-side' className='left-header' isCustomerMode={isCustomerMode} isChew={isChew}>
|
|
233
235
|
{windowSize.width > 820 && isFarAway && (
|
|
234
236
|
<FarAwayMessage>
|
|
235
237
|
<TiWarningOutline />
|
|
@@ -5,7 +5,8 @@ export const Header = styled.div`
|
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
width: 100%;
|
|
8
|
-
|
|
8
|
+
background-color: ${props => props.isChew && props.theme.colors.primary};
|
|
9
|
+
border-bottom: ${props => !props.isChew && css`1px solid #E9ECEF`};
|
|
9
10
|
`
|
|
10
11
|
|
|
11
12
|
export const InnerHeader = styled.div`
|
|
@@ -17,15 +18,15 @@ export const InnerHeader = styled.div`
|
|
|
17
18
|
align-items: center;
|
|
18
19
|
|
|
19
20
|
#left-side {
|
|
20
|
-
width:
|
|
21
|
+
width: ${({ theme }) => theme?.header?.components?.layout?.type === 'starbucks' ? '30%' : '25%'};
|
|
21
22
|
justify-content: flex-start;
|
|
22
23
|
}
|
|
23
24
|
#right-side {
|
|
24
|
-
width: 20
|
|
25
|
+
width: ${({ theme }) => theme?.header?.components?.layout?.type === 'starbucks' ? '30%' : '20%'};
|
|
25
26
|
justify-content: flex-end;
|
|
26
27
|
}
|
|
27
28
|
#center-side {
|
|
28
|
-
width: calc(60% - 30px);
|
|
29
|
+
width: ${({ theme }) => theme?.header?.components?.layout?.type === 'starbucks' ? 'calc(60% - 140px)' : 'calc(60% - 30px)'};
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
@media (min-width: 1024px) {
|
|
@@ -51,8 +52,8 @@ export const LogoHeader = styled.div`
|
|
|
51
52
|
cursor: pointer;
|
|
52
53
|
|
|
53
54
|
img {
|
|
54
|
-
width: ${props => props.imgW ?? '35px'};
|
|
55
|
-
height: ${props => props.imgH ?? '45px'};
|
|
55
|
+
width: ${props => props.isChew ? '70px' : props.imgW ?? '35px'};
|
|
56
|
+
height: ${props => props.isChew ? '20px' : props.imgH ?? '45px'};
|
|
56
57
|
margin: 0;
|
|
57
58
|
vertical-align: middle;
|
|
58
59
|
margin-left: 10px;
|
|
@@ -64,6 +65,7 @@ export const LogoHeader = styled.div`
|
|
|
64
65
|
|
|
65
66
|
@media (min-width: 768px) {
|
|
66
67
|
width: ${props => props.imgW ?? '150px'};
|
|
68
|
+
height: ${props => props.isChew && '35px'};
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
71
|
|
|
@@ -86,6 +88,7 @@ export const LogoHeader = styled.div`
|
|
|
86
88
|
export const LeftHeader = styled.div`
|
|
87
89
|
align-self: center;
|
|
88
90
|
display: flex;
|
|
91
|
+
align-items: center;
|
|
89
92
|
`
|
|
90
93
|
|
|
91
94
|
export const RightHeader = styled.div`
|
|
@@ -135,7 +138,7 @@ export const Menu = styled.div`
|
|
|
135
138
|
background: #F8F9FA;
|
|
136
139
|
border: none;
|
|
137
140
|
box-sizing: border-box;
|
|
138
|
-
border-radius: 50px;
|
|
141
|
+
border-radius: ${props => props.isChew ? '8px' : '50px'};
|
|
139
142
|
margin: 0 15px;
|
|
140
143
|
flex-grow: 1;
|
|
141
144
|
padding: 0 10px;
|
|
@@ -282,8 +285,8 @@ export const CustomerInfo = styled.div`
|
|
|
282
285
|
white-space: nowrap;
|
|
283
286
|
color: #909BA9;
|
|
284
287
|
}
|
|
285
|
-
svg {
|
|
286
|
-
color: #748194;
|
|
288
|
+
svg {
|
|
289
|
+
color: #748194;
|
|
287
290
|
margin: 0;
|
|
288
291
|
font-size: 20px;
|
|
289
292
|
position: absolute;
|
|
@@ -295,7 +298,7 @@ export const CustomerInfo = styled.div`
|
|
|
295
298
|
|
|
296
299
|
export const UserEdit = styled.div`
|
|
297
300
|
> :first-child{
|
|
298
|
-
margin-bottom: 20px;
|
|
301
|
+
margin-bottom: 20px;
|
|
299
302
|
}
|
|
300
303
|
`
|
|
301
304
|
|
|
@@ -303,7 +306,7 @@ export const AddressMenu = styled.div`
|
|
|
303
306
|
cursor: pointer;
|
|
304
307
|
font-size: 14px;
|
|
305
308
|
font-weight: 600;
|
|
306
|
-
color: ${props => props.theme.colors?.headingColor};
|
|
309
|
+
color: ${props => props.isChew ? props.theme.colors?.backgroundPage : props.theme.colors?.headingColor};
|
|
307
310
|
display: flex;
|
|
308
311
|
align-items: center;
|
|
309
312
|
position: relative;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { useUtils, useLanguage, useConfig, useOrder } from 'ordering-components-external'
|
|
2
|
+
import { useUtils, useLanguage, useConfig, useOrder, useOrderingTheme } from 'ordering-components-external'
|
|
3
3
|
import AiOutlineShoppingCart from '@meronex/icons/ai/AiOutlineShoppingCart'
|
|
4
4
|
import FaMapMarkerAlt from '@meronex/icons/fa/FaMapMarkerAlt'
|
|
5
5
|
|
|
@@ -19,8 +19,10 @@ export const HeaderOption = (props) => {
|
|
|
19
19
|
|
|
20
20
|
const [{ configs }] = useConfig()
|
|
21
21
|
const [{ parseDate }] = useUtils()
|
|
22
|
+
const [{ theme: orderingTheme }] = useOrderingTheme()
|
|
22
23
|
const [, t] = useLanguage()
|
|
23
24
|
const [orderStatus] = useOrder()
|
|
25
|
+
const isChew = orderingTheme?.theme?.header?.components?.layout?.type === 'Chew'
|
|
24
26
|
|
|
25
27
|
return (
|
|
26
28
|
<>
|
|
@@ -29,11 +31,12 @@ export const HeaderOption = (props) => {
|
|
|
29
31
|
{BeforeElement}
|
|
30
32
|
</React.Fragment>))}
|
|
31
33
|
{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
props.beforeComponents?.map((BeforeComponent, i) => (
|
|
35
|
+
<BeforeComponent key={i} {...props} />))
|
|
34
36
|
}
|
|
35
37
|
<Container
|
|
36
38
|
variant={variant}
|
|
39
|
+
isChew={isChew}
|
|
37
40
|
onClick={() => props.onClick(variant)}
|
|
38
41
|
isHome={props.isHome}
|
|
39
42
|
>
|
|
@@ -58,21 +61,21 @@ export const HeaderOption = (props) => {
|
|
|
58
61
|
)}
|
|
59
62
|
{
|
|
60
63
|
variant === 'delivery' && (
|
|
61
|
-
<DeliveryType>
|
|
64
|
+
<DeliveryType isChew={isChew}>
|
|
62
65
|
{(orderTypeList && orderTypeList[orderStatus?.options.type - 1]) || t('DELIVERY', 'Delivery')}
|
|
63
66
|
</DeliveryType>
|
|
64
67
|
)
|
|
65
68
|
}
|
|
66
69
|
</Container>
|
|
67
70
|
{
|
|
68
|
-
|
|
69
|
-
|
|
71
|
+
props.afterComponents?.map((AfterComponent, i) => (
|
|
72
|
+
<AfterComponent key={i} {...props} />))
|
|
70
73
|
}
|
|
71
74
|
{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
props.afterElements?.map((AfterElement, i) => (
|
|
76
|
+
<React.Fragment key={i}>
|
|
77
|
+
{AfterElement}
|
|
78
|
+
</React.Fragment>))
|
|
76
79
|
}
|
|
77
80
|
</>
|
|
78
81
|
)
|
|
@@ -30,7 +30,7 @@ export const Container = styled.div`
|
|
|
30
30
|
`}
|
|
31
31
|
|
|
32
32
|
${({ variant }) => variant === 'address' && css`
|
|
33
|
-
color:
|
|
33
|
+
color: ${props => props.isChew ? props.theme.colors?.backgroundPage : props.theme.colors?.headingColor};
|
|
34
34
|
display: flex;
|
|
35
35
|
align-items: center;
|
|
36
36
|
|
|
@@ -45,7 +45,7 @@ export const Container = styled.div`
|
|
|
45
45
|
`}
|
|
46
46
|
|
|
47
47
|
${({ variant }) => variant === 'moment' && css`
|
|
48
|
-
color:
|
|
48
|
+
color: ${props => props.isChew ? props.theme.colors?.backgroundPage : props.theme.colors?.headingColor};
|
|
49
49
|
display: flex;
|
|
50
50
|
align-items: center;
|
|
51
51
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react'
|
|
2
2
|
import { useTheme } from 'styled-components'
|
|
3
|
-
import { useSession, useOrder, useLanguage, useOrderingTheme } from 'ordering-components-external'
|
|
3
|
+
import { useSession, useOrder, useLanguage, useOrderingTheme, useConfig } from 'ordering-components-external'
|
|
4
4
|
import HiOutlineLocationMarker from '@meronex/icons/hi/HiOutlineLocationMarker'
|
|
5
5
|
import {
|
|
6
6
|
HeroContainer,
|
|
@@ -11,7 +11,8 @@ import {
|
|
|
11
11
|
LogoWrapper,
|
|
12
12
|
UseAccount,
|
|
13
13
|
HeroContent,
|
|
14
|
-
SectionHeader
|
|
14
|
+
SectionHeader,
|
|
15
|
+
PoweredByOrdering
|
|
15
16
|
} from './styles'
|
|
16
17
|
|
|
17
18
|
import { Modal } from '../../../Modal'
|
|
@@ -29,6 +30,7 @@ export const OriginalHomeHero = (props) => {
|
|
|
29
30
|
const [{ auth }, { login }] = useSession()
|
|
30
31
|
const [orderState] = useOrder()
|
|
31
32
|
const [, t] = useLanguage()
|
|
33
|
+
const [{ configs }] = useConfig()
|
|
32
34
|
const [modals, setModals] = useState({ listOpen: false, formOpen: false })
|
|
33
35
|
const theme = useTheme()
|
|
34
36
|
const userCustomer = parseInt(window.localStorage.getItem('user-customer'))
|
|
@@ -41,7 +43,7 @@ export const OriginalHomeHero = (props) => {
|
|
|
41
43
|
const bgImg = orderingTheme?.theme?.my_products?.components?.images?.components?.homepage_background?.components?.image
|
|
42
44
|
const logo = orderingTheme?.theme?.my_products?.components?.images?.components?.logo?.components?.image
|
|
43
45
|
const isFullScreen = orderingTheme?.theme?.my_products?.components?.images?.components?.homepage_image_fullscreen
|
|
44
|
-
|
|
46
|
+
const enabledPoweredByOrdering = configs?.powered_by_ordering_module?.value
|
|
45
47
|
const handleFindBusinesses = () => {
|
|
46
48
|
if (!orderState?.options?.address?.location) {
|
|
47
49
|
setModals({ ...modals, formOpen: true })
|
|
@@ -126,13 +128,23 @@ export const OriginalHomeHero = (props) => {
|
|
|
126
128
|
</ContentWrapper>
|
|
127
129
|
|
|
128
130
|
{windowSize.width < 576 && !auth && isShowLoginAccount && (
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
131
|
+
<>
|
|
132
|
+
{enabledPoweredByOrdering && (
|
|
133
|
+
<PoweredByOrdering>
|
|
134
|
+
{t('POWERED_BY', 'Powered by')}
|
|
135
|
+
<a href='https://www.ordering.co'>
|
|
136
|
+
{' '}{t('ORDERING_CO', 'Ordering.co')}
|
|
137
|
+
</a>
|
|
138
|
+
</PoweredByOrdering>
|
|
139
|
+
)}
|
|
140
|
+
<UseAccount>
|
|
141
|
+
<SectionHeader>
|
|
142
|
+
{t('YOUR_ACCOUNT', 'Use your account')}
|
|
143
|
+
</SectionHeader>
|
|
144
|
+
<Button color='primary' onClick={() => handleOpenLoginSignUp('login')}>{t('LOGIN', 'login')}</Button>
|
|
145
|
+
<Button color='primary' onClick={() => handleOpenLoginSignUp('signup')}>{t('SIGNUP', 'signUp')}</Button>
|
|
146
|
+
</UseAccount>
|
|
147
|
+
</>
|
|
136
148
|
)}
|
|
137
149
|
|
|
138
150
|
<Modal
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { useLanguage } from 'ordering-components-external'
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
Card,
|
|
5
|
+
CardWrapper,
|
|
6
|
+
CardsContainer
|
|
7
|
+
} from './styles'
|
|
4
8
|
import { OrdersContainer } from '../OrdersOption/styles'
|
|
5
9
|
|
|
6
|
-
import { AutoScroll } from '../AutoScroll'
|
|
7
|
-
import { Tabs } from '../../styles/Tabs'
|
|
8
10
|
import { Button } from '../../styles/Buttons'
|
|
9
11
|
import { SingleOrderCard } from '../SingleOrderCard'
|
|
12
|
+
import { Pagination } from '../Pagination'
|
|
10
13
|
|
|
11
14
|
export const HorizontalOrdersLayout = (props) => {
|
|
12
15
|
const {
|
|
@@ -15,11 +18,10 @@ export const HorizontalOrdersLayout = (props) => {
|
|
|
15
18
|
isBusinessesPage,
|
|
16
19
|
customArray,
|
|
17
20
|
businessesIds,
|
|
18
|
-
activeOrders,
|
|
19
|
-
pastOrders,
|
|
20
21
|
isCustomerMode,
|
|
21
22
|
isProducts,
|
|
22
|
-
isBusiness
|
|
23
|
+
isBusiness,
|
|
24
|
+
handleChangePage
|
|
23
25
|
} = props
|
|
24
26
|
|
|
25
27
|
const orders = customArray || props.orders
|
|
@@ -82,36 +84,22 @@ export const HorizontalOrdersLayout = (props) => {
|
|
|
82
84
|
ordersLength={orders?.length <= 1}
|
|
83
85
|
isBusinessesPage={isBusinessesPage}
|
|
84
86
|
>
|
|
85
|
-
|
|
86
|
-
<
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
>
|
|
102
|
-
<Button
|
|
103
|
-
className='load-orders'
|
|
104
|
-
color='primary'
|
|
105
|
-
outline
|
|
106
|
-
onClick={loadMoreOrders}
|
|
107
|
-
>
|
|
108
|
-
{t('LOAD_MORE_ORDERS', 'Load more orders')}
|
|
109
|
-
</Button>
|
|
110
|
-
</Card>
|
|
111
|
-
)}
|
|
112
|
-
</AutoScroll>
|
|
113
|
-
</Tabs>
|
|
114
|
-
) : <Orders />}
|
|
87
|
+
<CardWrapper>
|
|
88
|
+
<CardsContainer>
|
|
89
|
+
{orders.length > 0 && ordersToShow.map(order => (
|
|
90
|
+
<SingleOrderCard
|
|
91
|
+
{...props}
|
|
92
|
+
key={order.id}
|
|
93
|
+
order={order}
|
|
94
|
+
/>
|
|
95
|
+
))}
|
|
96
|
+
</CardsContainer>
|
|
97
|
+
<Pagination
|
|
98
|
+
currentPage={pagination.currentPage}
|
|
99
|
+
totalPages={Math.ceil(pagination?.totalPages)}
|
|
100
|
+
handleChangePage={handleChangePage}
|
|
101
|
+
/>
|
|
102
|
+
</CardWrapper>
|
|
115
103
|
</OrdersContainer>
|
|
116
104
|
)
|
|
117
105
|
}
|
|
@@ -14,9 +14,20 @@ export const Content = styled.div`
|
|
|
14
14
|
`}
|
|
15
15
|
`
|
|
16
16
|
|
|
17
|
+
export const CardWrapper = styled.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
width: 100%;
|
|
21
|
+
`
|
|
22
|
+
export const CardsContainer = styled.div`
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
overflow-x: auto;
|
|
26
|
+
`
|
|
27
|
+
|
|
17
28
|
export const Price = styled.div`
|
|
18
29
|
width: 35%;
|
|
19
|
-
|
|
30
|
+
|
|
20
31
|
${({ isCustomerMode }) => isCustomerMode ? css`
|
|
21
32
|
text-align: end;
|
|
22
33
|
white-space: nowrap;
|
|
@@ -52,6 +52,7 @@ export const InputPhoneNumber = (props) => {
|
|
|
52
52
|
placeholder={t('PHONE_NUMBER', 'Phone number')}
|
|
53
53
|
defaultCountry={configs?.default_country_code?.value}
|
|
54
54
|
value={value}
|
|
55
|
+
name='telefono'
|
|
55
56
|
displayInitialValueAsLocalNumber
|
|
56
57
|
onChange={(val) => setValue && setValue(val, isValidPhoneNumber(val))}
|
|
57
58
|
/>
|
|
@@ -415,6 +415,7 @@ const LoginFormUI = (props) => {
|
|
|
415
415
|
<FormInput
|
|
416
416
|
noValidate
|
|
417
417
|
isPopup={isPopup}
|
|
418
|
+
autoComplete='on'
|
|
418
419
|
>
|
|
419
420
|
{
|
|
420
421
|
props.beforeMidElements?.map((BeforeMidElements, i) => (
|
|
@@ -473,7 +474,7 @@ const LoginFormUI = (props) => {
|
|
|
473
474
|
pattern: /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i
|
|
474
475
|
})}
|
|
475
476
|
onChange={handleChangeInputEmail}
|
|
476
|
-
autoComplete='
|
|
477
|
+
autoComplete='on'
|
|
477
478
|
isError={formMethods.errors?.email}
|
|
478
479
|
/>
|
|
479
480
|
<InputBeforeIcon>
|
|
@@ -36,6 +36,7 @@ import SwiperCore, {
|
|
|
36
36
|
} from 'swiper'
|
|
37
37
|
import 'swiper/swiper-bundle.min.css'
|
|
38
38
|
import 'swiper/swiper.min.css'
|
|
39
|
+
import { getTimes as getTimesUtils } from '../../../../../utils'
|
|
39
40
|
|
|
40
41
|
SwiperCore.use([Navigation])
|
|
41
42
|
|
|
@@ -78,9 +79,9 @@ const MomentControlUI = (props) => {
|
|
|
78
79
|
|
|
79
80
|
const getTimes = (curdate, schedule) => {
|
|
80
81
|
validateSelectedDate(curdate, schedule)
|
|
81
|
-
const dateParts = curdate
|
|
82
|
+
const dateParts = curdate?.split?.('-')
|
|
82
83
|
const dateSeleted = new Date(dateParts[0], dateParts[1] - 1, dateParts[2])
|
|
83
|
-
const times =
|
|
84
|
+
const times = getTimesUtils(dateSeleted, schedule, is12hours)
|
|
84
85
|
return times
|
|
85
86
|
}
|
|
86
87
|
|
|
@@ -27,7 +27,6 @@ export const MyOrders = (props) => {
|
|
|
27
27
|
const [orderingTheme] = useOrderingTheme()
|
|
28
28
|
const layout = orderingTheme?.theme?.orders?.components?.layout?.type || 'original'
|
|
29
29
|
|
|
30
|
-
const [selectItem, setSelectItem] = useState('all')
|
|
31
30
|
const [isEmptyActive, setIsEmptyActive] = useState(false)
|
|
32
31
|
const [isEmptyPast, setIsEmptyPast] = useState(false)
|
|
33
32
|
const [isEmptyPreorder, setIsEmptyPreorder] = useState(false)
|
|
@@ -35,13 +34,6 @@ export const MyOrders = (props) => {
|
|
|
35
34
|
const [isEmptyBusinesses, setIsEmptyBusinesses] = useState(false)
|
|
36
35
|
const [businessOrderIds, setBusinessOrderIds] = useState([])
|
|
37
36
|
|
|
38
|
-
const filterList = [
|
|
39
|
-
{ key: 'all', value: t('ALL', 'All') },
|
|
40
|
-
{ key: 'active', value: t('ACTIVE', 'Active') },
|
|
41
|
-
{ key: 'past', value: t('PAST', 'Past') },
|
|
42
|
-
{ key: 'preorder', value: t('PREORDERS', 'Preorders') }
|
|
43
|
-
]
|
|
44
|
-
|
|
45
37
|
const MyOrdersMenu = [
|
|
46
38
|
{ key: 'orders', value: t('ORDERS', 'Orders') },
|
|
47
39
|
{ key: 'business', value: t('BUSINESS', 'Business') },
|
|
@@ -51,11 +43,6 @@ export const MyOrders = (props) => {
|
|
|
51
43
|
const notOrderOptions = ['business', 'products', 'professionals']
|
|
52
44
|
const allEmpty = (isEmptyActive && isEmptyPast && isEmptyPreorder) || ((isEmptyBusinesses || businessOrderIds?.length === 0) && hideOrders)
|
|
53
45
|
|
|
54
|
-
const handleChangeFilter = (key) => {
|
|
55
|
-
if (selectItem === key) setSelectItem('all')
|
|
56
|
-
else setSelectItem(key)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
46
|
return (
|
|
60
47
|
<>
|
|
61
48
|
{props.beforeElements?.map((BeforeElement, i) => (
|
|
@@ -99,19 +86,6 @@ export const MyOrders = (props) => {
|
|
|
99
86
|
</Tabs>
|
|
100
87
|
</MyOrdersMenuContainer>
|
|
101
88
|
)}
|
|
102
|
-
{!(isEmptyActive && isEmptyPast && isEmptyPreorder) && selectedOption === 'orders' && layout !== 'appointments' && (
|
|
103
|
-
<OrderGroupFilterWrapper>
|
|
104
|
-
{filterList?.map((order, i) => (
|
|
105
|
-
<Button
|
|
106
|
-
key={i}
|
|
107
|
-
color={selectItem === order.key ? 'primary' : 'secundary'}
|
|
108
|
-
onClick={() => handleChangeFilter(order.key)}
|
|
109
|
-
>
|
|
110
|
-
{order.value}{selectItem === order.key && <MdClose />}
|
|
111
|
-
</Button>
|
|
112
|
-
))}
|
|
113
|
-
</OrderGroupFilterWrapper>
|
|
114
|
-
)}
|
|
115
89
|
{selectedOption === 'orders' && (
|
|
116
90
|
<>
|
|
117
91
|
{(isEmptyActive && isEmptyPast && isEmptyPreorder) ? (
|
|
@@ -126,42 +100,26 @@ export const MyOrders = (props) => {
|
|
|
126
100
|
</NoOrdersWrapper>
|
|
127
101
|
) : (
|
|
128
102
|
<>
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
/>
|
|
150
|
-
{!isEmptyActive && <Divider />}
|
|
151
|
-
</>
|
|
152
|
-
)}
|
|
153
|
-
{(selectItem === 'all' || selectItem === 'past') && (
|
|
154
|
-
<>
|
|
155
|
-
<OrdersOption
|
|
156
|
-
{...props}
|
|
157
|
-
pastOrders
|
|
158
|
-
horizontal
|
|
159
|
-
setIsEmptyPast={setIsEmptyPast}
|
|
160
|
-
selectItem={selectItem}
|
|
161
|
-
/>
|
|
162
|
-
{!isEmptyPast && <Divider />}
|
|
163
|
-
</>
|
|
164
|
-
)}
|
|
103
|
+
<OrdersOption
|
|
104
|
+
{...props}
|
|
105
|
+
preOrders
|
|
106
|
+
horizontal
|
|
107
|
+
setIsEmptyPreorder={setIsEmptyPreorder}
|
|
108
|
+
/>
|
|
109
|
+
{!isEmptyPreorder && <Divider />}
|
|
110
|
+
<OrdersOption
|
|
111
|
+
{...props}
|
|
112
|
+
activeOrders
|
|
113
|
+
horizontal
|
|
114
|
+
setIsEmptyActive={setIsEmptyActive}
|
|
115
|
+
/>
|
|
116
|
+
{!isEmptyActive && <Divider />}
|
|
117
|
+
<OrdersOption
|
|
118
|
+
{...props}
|
|
119
|
+
pastOrders
|
|
120
|
+
setIsEmptyPast={setIsEmptyPast}
|
|
121
|
+
/>
|
|
122
|
+
{!isEmptyPast && <Divider />}
|
|
165
123
|
</>
|
|
166
124
|
)}
|
|
167
125
|
</>
|