ordering-ui-react-native 0.12.75 → 0.12.76
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
package/src/config.json
CHANGED
|
@@ -81,6 +81,7 @@ const BusinessMenuListUI = (props: BusinessMenuListParams) => {
|
|
|
81
81
|
<IconAntDesign
|
|
82
82
|
name='close'
|
|
83
83
|
color={theme.colors.textThird}
|
|
84
|
+
style={{ marginLeft: 7 }}
|
|
84
85
|
size={24}
|
|
85
86
|
/>
|
|
86
87
|
</TouchableOpacity>
|
|
@@ -115,6 +116,11 @@ const BusinessMenuListUI = (props: BusinessMenuListParams) => {
|
|
|
115
116
|
</DropOption>
|
|
116
117
|
</TouchableOpacity>
|
|
117
118
|
))}
|
|
119
|
+
{businessMenuList?.menus && businessMenuList?.menus.length === 0 && (
|
|
120
|
+
<View>
|
|
121
|
+
<OText>{t('NO_RESULTS_FOUND', 'Sorry, no results found')}</OText>
|
|
122
|
+
</View>
|
|
123
|
+
)}
|
|
118
124
|
</MenuListWrapper>
|
|
119
125
|
</OModal>
|
|
120
126
|
</>
|
|
@@ -123,6 +123,17 @@ const BusinessPreorderUI = (props: BusinessPreorderParams) => {
|
|
|
123
123
|
color: '#B1BCCC',
|
|
124
124
|
fontSize: 14,
|
|
125
125
|
fontWeight: '500'
|
|
126
|
+
},
|
|
127
|
+
wrapperIcon: {
|
|
128
|
+
overflow: 'hidden',
|
|
129
|
+
backgroundColor: 'transparent',
|
|
130
|
+
marginBottom: 12,
|
|
131
|
+
width: 25,
|
|
132
|
+
height: 25,
|
|
133
|
+
marginStart: 7,
|
|
134
|
+
alignItems: 'center',
|
|
135
|
+
justifyContent: 'center',
|
|
136
|
+
zIndex: 99999
|
|
126
137
|
}
|
|
127
138
|
})
|
|
128
139
|
|
|
@@ -264,12 +275,13 @@ const BusinessPreorderUI = (props: BusinessPreorderParams) => {
|
|
|
264
275
|
|
|
265
276
|
return (
|
|
266
277
|
<>
|
|
267
|
-
<PreOrderContainer>
|
|
278
|
+
<PreOrderContainer contentContainerStyle={{ paddingVertical: 30, paddingHorizontal: 40 }}>
|
|
268
279
|
<TouchableOpacity onPress={() => goToBack && goToBack()} style={{ marginBottom: 12 }}>
|
|
269
280
|
<IconAntDesign
|
|
270
281
|
name='close'
|
|
271
282
|
color={theme.colors.textThird}
|
|
272
283
|
size={24}
|
|
284
|
+
style={{ marginLeft: -4}}
|
|
273
285
|
/>
|
|
274
286
|
</TouchableOpacity>
|
|
275
287
|
<BusinessInfoWrapper>
|
|
@@ -350,7 +362,7 @@ const BusinessPreorderUI = (props: BusinessPreorderParams) => {
|
|
|
350
362
|
{t('ORDER_TIME', 'Order time')}
|
|
351
363
|
</OText>
|
|
352
364
|
<View style={{ flex: 1 }}>
|
|
353
|
-
{selectDate && datesWhitelist[0]
|
|
365
|
+
{selectDate && datesWhitelist[0]?.start !== null && (
|
|
354
366
|
<CalendarStrip
|
|
355
367
|
scrollable
|
|
356
368
|
style={styles.calendar}
|
|
@@ -398,7 +410,7 @@ const BusinessPreorderUI = (props: BusinessPreorderParams) => {
|
|
|
398
410
|
<OButton
|
|
399
411
|
text={t('GO_TO_MENU', 'Go to menu')}
|
|
400
412
|
textStyle={{color: 'white'}}
|
|
401
|
-
style={{borderRadius: 7.6, marginBottom:
|
|
413
|
+
style={{borderRadius: 7.6, marginBottom: 20, marginTop: 30}}
|
|
402
414
|
onClick={() => handleClickBusiness()}
|
|
403
415
|
/>
|
|
404
416
|
</PreOrderContainer>
|
|
@@ -409,8 +421,8 @@ const BusinessPreorderUI = (props: BusinessPreorderParams) => {
|
|
|
409
421
|
customClose
|
|
410
422
|
entireModal
|
|
411
423
|
>
|
|
412
|
-
<PreorderTypeListWrapper>
|
|
413
|
-
<TouchableOpacity onPress={() => setIsPreorderTypeList(false)} style={
|
|
424
|
+
<PreorderTypeListWrapper contentContainerStyle={{ paddingVertical: 20, paddingHorizontal: 40}}>
|
|
425
|
+
<TouchableOpacity onPress={() => setIsPreorderTypeList(false)} style={styles.wrapperIcon}>
|
|
414
426
|
<IconAntDesign
|
|
415
427
|
name='close'
|
|
416
428
|
color={theme.colors.textThird}
|
|
@@ -421,6 +433,7 @@ const BusinessPreorderUI = (props: BusinessPreorderParams) => {
|
|
|
421
433
|
<TouchableOpacity
|
|
422
434
|
key={index}
|
|
423
435
|
onPress={() => handleClickPreorderType(option)}
|
|
436
|
+
style={{ zIndex: 99999 }}
|
|
424
437
|
>
|
|
425
438
|
<DropOption
|
|
426
439
|
numberOfLines={1}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components/native'
|
|
2
2
|
|
|
3
|
-
export const PreOrderContainer = styled.ScrollView
|
|
4
|
-
padding: 20px 40px 30px 40px;
|
|
5
|
-
`
|
|
3
|
+
export const PreOrderContainer = styled.ScrollView``
|
|
6
4
|
|
|
7
5
|
export const BusinessInfoWrapper = styled.View`
|
|
8
6
|
flex-direction: row;
|
|
@@ -45,9 +43,7 @@ export const TimeItem = styled.View`
|
|
|
45
43
|
`}
|
|
46
44
|
`
|
|
47
45
|
|
|
48
|
-
export const PreorderTypeListWrapper = styled.ScrollView
|
|
49
|
-
padding: 20px 40px 30px 40px;
|
|
50
|
-
`
|
|
46
|
+
export const PreorderTypeListWrapper = styled.ScrollView``
|
|
51
47
|
|
|
52
48
|
export const DropOption = styled.View`
|
|
53
49
|
padding: 10px;
|