ordering-ui-react-native 0.16.27 → 0.16.28-release
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 +8 -5
- package/src/DeliveryApp.tsx +43 -1
- package/src/components/ActiveOrders/index.tsx +61 -63
- package/src/components/ActiveOrders/styles.tsx +8 -14
- package/src/components/AddressForm/index.tsx +18 -2
- package/src/components/BusinessBasicInformation/index.tsx +11 -19
- package/src/components/BusinessInformation/index.tsx +33 -4
- package/src/components/BusinessInformation/styles.tsx +2 -2
- package/src/components/BusinessProductsList/index.tsx +10 -10
- package/src/components/BusinessesListing/index.tsx +1 -1
- package/src/components/Checkout/index.tsx +2 -1
- package/src/components/LanguageSelector/index.tsx +21 -16
- package/src/components/LoginForm/index.tsx +15 -0
- package/src/components/Messages/index.tsx +2 -2
- package/src/components/NotificationSetting/index.tsx +85 -0
- package/src/components/OrderDetails/index.tsx +2 -20
- package/src/components/OrdersOption/index.tsx +54 -56
- package/src/components/PaymentOptions/index.tsx +335 -365
- package/src/components/PaymentOptionsWebView/index.tsx +120 -121
- package/src/components/ReviewDriver/index.tsx +1 -1
- package/src/components/ReviewOrder/index.tsx +2 -1
- package/src/components/ReviewProducts/index.tsx +11 -0
- package/src/components/SignupForm/index.tsx +15 -0
- package/src/components/SingleProductReview/index.tsx +8 -5
- package/src/components/StripeElementsForm/index.tsx +25 -16
- package/src/components/VerifyPhone/styles.tsx +1 -2
- package/src/components/shared/OBottomPopup.tsx +6 -2
- package/src/index.tsx +2 -0
- package/src/pages/BusinessesListing.tsx +7 -6
- package/src/pages/OrderDetails.tsx +1 -1
- package/src/pages/ReviewDriver.tsx +2 -2
- package/src/pages/ReviewOrder.tsx +2 -2
- package/src/types/@fatnlazycat/react-native-recaptcha-v3/index.d.ts +1 -0
- package/src/utils/index.tsx +0 -1
- package/themes/business/index.tsx +4 -0
- package/themes/business/src/components/BusinessController/index.tsx +2 -2
- package/themes/business/src/components/Chat/index.tsx +42 -34
- package/themes/business/src/components/DriverMap/index.tsx +7 -5
- package/themes/business/src/components/DriverSchedule/index.tsx +71 -0
- package/themes/business/src/components/DriverSchedule/styles.tsx +6 -0
- package/themes/business/src/components/LoginForm/index.tsx +111 -74
- package/themes/business/src/components/MapView/index.tsx +12 -1
- package/themes/business/src/components/MessagesOption/index.tsx +11 -1
- package/themes/business/src/components/OrderDetails/Business.tsx +1 -1
- package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +25 -19
- package/themes/business/src/components/OrdersListManager/index.tsx +10 -3
- package/themes/business/src/components/OrdersOption/index.tsx +65 -21
- package/themes/business/src/components/OrdersOption/styles.tsx +5 -1
- package/themes/business/src/components/OrdersOptionBusiness/index.tsx +15 -1
- package/themes/business/src/components/OrdersOptionCity/index.tsx +15 -1
- package/themes/business/src/components/OrdersOptionDate/index.tsx +19 -6
- package/themes/business/src/components/OrdersOptionDelivery/index.tsx +15 -1
- package/themes/business/src/components/OrdersOptionDriver/index.tsx +15 -1
- package/themes/business/src/components/OrdersOptionPaymethod/index.tsx +15 -1
- package/themes/business/src/components/OrdersOptionStatus/index.tsx +10 -1
- package/themes/business/src/components/PreviousMessages/index.tsx +17 -18
- package/themes/business/src/components/PreviousOrders/index.tsx +21 -23
- package/themes/business/src/components/ProductItemAccordion/index.tsx +5 -4
- package/themes/business/src/components/ReviewCustomer/index.tsx +1 -1
- package/themes/business/src/components/ScheduleBlocked/index.tsx +53 -0
- package/themes/business/src/components/UserFormDetails/index.tsx +5 -2
- package/themes/business/src/components/UserProfileForm/index.tsx +28 -4
- package/themes/business/src/components/shared/ODropDown.tsx +42 -8
- package/themes/business/src/components/shared/ODropDownCalendar.tsx +36 -7
- package/themes/business/src/components/shared/OModal.tsx +40 -37
- package/themes/business/src/types/index.tsx +15 -9
- package/themes/business/src/utils/index.tsx +10 -0
- package/themes/doordash/src/components/BusinessesListing/index.tsx +1 -1
- package/themes/doordash/src/components/LoginForm/index.tsx +1 -2
- package/themes/instacart/src/components/BusinessesListing/index.tsx +1 -1
- package/themes/kiosk/src/components/Checkout/index.tsx +6 -0
- package/themes/kiosk/src/components/LoginForm/index.tsx +121 -10
- package/themes/kiosk/src/components/LoginForm/styles.tsx +5 -0
- package/themes/kiosk/src/components/NavBar/index.tsx +14 -14
- package/themes/kiosk/src/components/OptionCard/index.tsx +1 -1
- package/themes/kiosk/src/components/OrderTypeCardSelector/index.tsx +8 -10
- package/themes/kiosk/src/components/shared/OButton.tsx +5 -18
- package/themes/kiosk/src/types/index.d.ts +2 -0
- package/themes/original/index.tsx +12 -0
- package/themes/original/src/components/AddressDetails/index.tsx +1 -1
- package/themes/original/src/components/AddressForm/index.tsx +139 -135
- package/themes/original/src/components/AddressList/index.tsx +1 -1
- package/themes/original/src/components/AppleLogin/index.tsx +4 -4
- package/themes/original/src/components/BusinessBasicInformation/index.tsx +311 -161
- package/themes/original/src/components/BusinessBasicInformation/styles.tsx +6 -2
- package/themes/original/src/components/BusinessController/index.tsx +190 -113
- package/themes/original/src/components/BusinessController/styles.tsx +0 -7
- package/themes/original/src/components/BusinessItemAccordion/index.tsx +4 -4
- package/themes/original/src/components/BusinessListingSearch/BusinessControllerSkeletons/index.tsx +57 -0
- package/themes/original/src/components/BusinessListingSearch/MaxSectionItem/index.tsx +59 -0
- package/themes/original/src/components/BusinessListingSearch/MaxSectionItem/styles.tsx +13 -0
- package/themes/original/src/components/BusinessListingSearch/index.tsx +81 -128
- package/themes/original/src/components/BusinessListingSearch/styles.tsx +10 -12
- package/themes/original/src/components/BusinessProductsList/SubcategoriesComponent/index.tsx +87 -0
- package/themes/original/src/components/BusinessProductsList/SubcategoriesComponent/styles.tsx +12 -0
- package/themes/original/src/components/BusinessProductsList/index.tsx +49 -52
- package/themes/original/src/components/BusinessProductsList/styles.tsx +0 -3
- package/themes/original/src/components/BusinessProductsListing/index.tsx +293 -177
- package/themes/original/src/components/BusinessProductsListing/styles.tsx +23 -11
- package/themes/original/src/components/BusinessReviews/index.tsx +6 -1
- package/themes/original/src/components/BusinessTypeFilter/index.tsx +109 -40
- package/themes/original/src/components/BusinessTypeFilter/styles.tsx +2 -0
- package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +561 -0
- package/themes/original/src/components/BusinessesListing/{styles.tsx → Layout/Appointment/styles.tsx} +24 -10
- package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +676 -0
- package/themes/original/src/components/BusinessesListing/Layout/Original/styles.tsx +137 -0
- package/themes/original/src/components/BusinessesListing/index.tsx +105 -519
- package/themes/original/src/components/Cart/index.tsx +44 -12
- package/themes/original/src/components/Cart/styles.tsx +4 -0
- package/themes/original/src/components/CartContent/index.tsx +22 -16
- package/themes/original/src/components/Checkout/index.tsx +101 -61
- package/themes/original/src/components/Checkout/styles.tsx +0 -1
- package/themes/original/src/components/DriverTips/index.tsx +4 -4
- package/themes/original/src/components/DriverTips/styles.tsx +2 -1
- package/themes/original/src/components/Favorite/index.tsx +1 -0
- package/themes/original/src/components/FavoriteList/index.tsx +32 -2
- package/themes/original/src/components/FloatingButton/styles.tsx +1 -1
- package/themes/original/src/components/GPSButton/index.tsx +20 -19
- package/themes/original/src/components/GoogleMap/index.tsx +20 -12
- package/themes/original/src/components/HelpAccountAndPayment/index.tsx +25 -10
- package/themes/original/src/components/HelpAccountAndPayment/styles.tsx +4 -0
- package/themes/original/src/components/HelpGuide/index.tsx +9 -8
- package/themes/original/src/components/HelpOrder/index.tsx +9 -8
- package/themes/original/src/components/LanguageSelector/index.tsx +19 -14
- package/themes/original/src/components/LoginForm/Otp/index.tsx +95 -72
- package/themes/original/src/components/LoginForm/index.tsx +83 -45
- package/themes/original/src/components/LottieAnimation/index.tsx +69 -0
- package/themes/original/src/components/Messages/index.tsx +17 -17
- package/themes/original/src/components/MomentOption/index.tsx +1 -1
- package/themes/original/src/components/MomentSelector/index.tsx +197 -0
- package/themes/original/src/components/MomentSelector/styles.tsx +6 -0
- package/themes/original/src/components/MultiCartsPaymethodsAndWallets/index.tsx +92 -92
- package/themes/original/src/components/MultiCheckout/index.tsx +6 -0
- package/themes/original/src/components/MultiOrdersDetails/index.tsx +20 -16
- package/themes/original/src/components/MyOrders/index.tsx +70 -6
- package/themes/original/src/components/NavBar/index.tsx +15 -9
- package/themes/original/src/components/NetworkError/index.tsx +5 -3
- package/themes/original/src/components/NotFoundSource/index.tsx +2 -1
- package/themes/original/src/components/Notifications/index.tsx +148 -0
- package/themes/original/src/components/Notifications/styles.tsx +17 -0
- package/themes/original/src/components/OrderDetails/OrderHistory.tsx +167 -0
- package/themes/original/src/components/OrderDetails/index.tsx +190 -35
- package/themes/original/src/components/OrderDetails/styles.tsx +15 -2
- package/themes/original/src/components/OrderItAgain/index.tsx +75 -0
- package/themes/original/src/components/OrderItAgain/styles.tsx +10 -0
- package/themes/original/src/components/OrderProgress/index.tsx +8 -2
- package/themes/original/src/components/OrderSummary/index.tsx +3 -36
- package/themes/original/src/components/OrderTypeSelector/index.tsx +85 -36
- package/themes/original/src/components/OrderTypeSelector/styles.tsx +19 -1
- package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/index.tsx +100 -106
- package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/index.tsx +17 -12
- package/themes/original/src/components/OrdersOption/index.tsx +71 -55
- package/themes/original/src/components/PaymentOptionWallet/index.tsx +56 -56
- package/themes/original/src/components/PaymentOptions/index.tsx +41 -23
- package/themes/original/src/components/PhoneInputNumber/index.tsx +4 -10
- package/themes/original/src/components/PlaceSpot/index.tsx +243 -47
- package/themes/original/src/components/PlaceSpot/styles.tsx +0 -2
- package/themes/original/src/components/PreviousOrders/index.tsx +3 -2
- package/themes/original/src/components/ProductForm/index.tsx +633 -664
- package/themes/original/src/components/ProductForm/styles.tsx +9 -8
- package/themes/original/src/components/ProductItemAccordion/index.tsx +199 -128
- package/themes/original/src/components/ProductOption/index.tsx +1 -1
- package/themes/original/src/components/ProfessionalFilter/index.tsx +129 -0
- package/themes/original/src/components/ProfessionalFilter/styles.tsx +0 -0
- package/themes/original/src/components/ProfessionalProfile/index.tsx +309 -0
- package/themes/original/src/components/ProfessionalProfile/styles.tsx +46 -0
- package/themes/original/src/components/ReviewDriver/index.tsx +6 -6
- package/themes/original/src/components/ReviewOrder/index.tsx +18 -3
- package/themes/original/src/components/ReviewProducts/index.tsx +1 -1
- package/themes/original/src/components/ReviewTrigger/index.tsx +118 -0
- package/themes/original/src/components/ReviewTrigger/styles.tsx +34 -0
- package/themes/original/src/components/SearchBar/index.tsx +5 -3
- package/themes/original/src/components/ServiceForm/index.tsx +637 -0
- package/themes/original/src/components/ServiceForm/styles.tsx +50 -0
- package/themes/original/src/components/SignupForm/index.tsx +350 -206
- package/themes/original/src/components/SingleOrderCard/index.tsx +229 -181
- package/themes/original/src/components/SingleOrderCard/styles.tsx +0 -7
- package/themes/original/src/components/SingleProductCard/index.tsx +199 -110
- package/themes/original/src/components/SingleProductCard/styles.tsx +1 -10
- package/themes/original/src/components/SingleProductReview/index.tsx +38 -5
- package/themes/original/src/components/SingleProductReview/styles.tsx +12 -0
- package/themes/original/src/components/StripeElementsForm/index.tsx +15 -7
- package/themes/original/src/components/UpsellingProducts/index.tsx +15 -5
- package/themes/original/src/components/UserDetails/index.tsx +31 -17
- package/themes/original/src/components/UserFormDetails/index.tsx +74 -81
- package/themes/original/src/components/UserProfile/index.tsx +54 -29
- package/themes/original/src/components/UserProfile/styles.ts +17 -0
- package/themes/original/src/components/UserProfileForm/index.tsx +15 -10
- package/themes/original/src/components/WalletTransactions/index.tsx +76 -0
- package/themes/original/src/components/WalletTransactions/styles.tsx +13 -0
- package/themes/original/src/components/Wallets/index.tsx +176 -164
- package/themes/original/src/components/Wallets/styles.tsx +12 -8
- package/themes/original/src/components/shared/CardAnimation.tsx +47 -0
- package/themes/original/src/components/shared/OBottomPopup.tsx +48 -15
- package/themes/original/src/components/shared/OButton.tsx +10 -3
- package/themes/original/src/components/shared/OIcon.tsx +8 -1
- package/themes/original/src/components/shared/OInput.tsx +3 -2
- package/themes/original/src/layouts/Container.tsx +13 -9
- package/themes/original/src/layouts/FloatingBottomContainer.tsx +5 -1
- package/themes/original/src/types/index.tsx +121 -30
- package/themes/original/src/utils/index.tsx +77 -0
- package/themes/uber-eats/src/components/BusinessesListing/index.tsx +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
BusinessReviews as BusinessReviewController,
|
|
4
4
|
useLanguage,
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
import { BusinessReviewsParams } from '../../types';
|
|
23
23
|
import { ProgressBar, TouchableRipple } from 'react-native-paper';
|
|
24
24
|
import moment from 'moment';
|
|
25
|
+
import { setLocalMoment } from '../../utils';
|
|
25
26
|
|
|
26
27
|
const BusinessReviewsUI = (props: BusinessReviewsParams) => {
|
|
27
28
|
const { businessState, reviewsList } = props;
|
|
@@ -99,6 +100,10 @@ const BusinessReviewsUI = (props: BusinessReviewsParams) => {
|
|
|
99
100
|
</View>
|
|
100
101
|
);
|
|
101
102
|
|
|
103
|
+
useEffect(() => {
|
|
104
|
+
setLocalMoment(moment, t)
|
|
105
|
+
}, [])
|
|
106
|
+
|
|
102
107
|
return (
|
|
103
108
|
<BusinessReviewsContainer>
|
|
104
109
|
<BusinessReviewContent
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
Dimensions
|
|
9
9
|
} from 'react-native';
|
|
10
10
|
import { Fade, Placeholder, PlaceholderLine } from 'rn-placeholder';
|
|
11
|
+
import { OButton } from '../shared'
|
|
11
12
|
import {
|
|
12
13
|
BusinessTypeFilter as BusinessTypeFilterController,
|
|
13
14
|
useLanguage,
|
|
@@ -17,6 +18,7 @@ import {
|
|
|
17
18
|
BusinessCategories,
|
|
18
19
|
Category,
|
|
19
20
|
BCContainer,
|
|
21
|
+
ServiceWrapper
|
|
20
22
|
} from './styles';
|
|
21
23
|
import { OIcon, OText, OModal } from '../shared';
|
|
22
24
|
import { BusinessTypeFilterParams } from '../../types';
|
|
@@ -28,13 +30,15 @@ export const BusinessTypeFilterUI = (props: BusinessTypeFilterParams) => {
|
|
|
28
30
|
typesState,
|
|
29
31
|
currentTypeSelected,
|
|
30
32
|
handleChangeBusinessType,
|
|
31
|
-
setBusinessTypes
|
|
33
|
+
setBusinessTypes,
|
|
34
|
+
isAppoint
|
|
32
35
|
} = props;
|
|
33
36
|
|
|
34
37
|
const [, t] = useLanguage();
|
|
35
38
|
|
|
36
39
|
const theme = useTheme();
|
|
37
40
|
const [isOpenAllCategories, setIsOpenAllCategories] = useState(false)
|
|
41
|
+
const defaultImage = (name : string) => theme.images?.categories?.[name.toLowerCase().replace(' ', '')]
|
|
38
42
|
|
|
39
43
|
useEffect(() => {
|
|
40
44
|
if(typesState?.types?.length > 0){
|
|
@@ -42,6 +46,15 @@ export const BusinessTypeFilterUI = (props: BusinessTypeFilterParams) => {
|
|
|
42
46
|
}
|
|
43
47
|
}, [typesState])
|
|
44
48
|
|
|
49
|
+
const handleChangeServiceType = (serviceId: any) => {
|
|
50
|
+
if (serviceId === currentTypeSelected) {
|
|
51
|
+
handleChangeBusinessType(null)
|
|
52
|
+
return
|
|
53
|
+
}
|
|
54
|
+
handleChangeBusinessType(serviceId)
|
|
55
|
+
isOpenAllCategories && setIsOpenAllCategories(false)
|
|
56
|
+
}
|
|
57
|
+
|
|
45
58
|
const renderTypes = ({ item }: any) => {
|
|
46
59
|
return (
|
|
47
60
|
<TouchableOpacity
|
|
@@ -72,48 +85,95 @@ export const BusinessTypeFilterUI = (props: BusinessTypeFilterParams) => {
|
|
|
72
85
|
|
|
73
86
|
return (
|
|
74
87
|
<>
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
<
|
|
79
|
-
<
|
|
80
|
-
|
|
88
|
+
{isAppoint ? (
|
|
89
|
+
<>
|
|
90
|
+
{typesState?.loading && (
|
|
91
|
+
<View>
|
|
92
|
+
<Placeholder Animation={Fade}>
|
|
93
|
+
<ScrollView
|
|
94
|
+
horizontal
|
|
95
|
+
showsVerticalScrollIndicator={false}
|
|
96
|
+
showsHorizontalScrollIndicator={false}>
|
|
97
|
+
{[...Array(4)].map((_, i) => (
|
|
98
|
+
<View
|
|
99
|
+
key={i}
|
|
100
|
+
style={{ width: 80, borderRadius: 50, marginRight: 10 }}>
|
|
101
|
+
<PlaceholderLine height={25} noMargin />
|
|
102
|
+
</View>
|
|
103
|
+
))}
|
|
104
|
+
</ScrollView>
|
|
105
|
+
</Placeholder>
|
|
106
|
+
</View>
|
|
107
|
+
)}
|
|
108
|
+
{
|
|
109
|
+
!typesState?.loading &&
|
|
110
|
+
!typesState?.error &&
|
|
111
|
+
typesState?.types &&
|
|
112
|
+
typesState?.types.length > 0 && (
|
|
113
|
+
<ServiceWrapper
|
|
81
114
|
showsVerticalScrollIndicator={false}
|
|
82
|
-
showsHorizontalScrollIndicator={false}
|
|
83
|
-
|
|
84
|
-
|
|
115
|
+
showsHorizontalScrollIndicator={false}
|
|
116
|
+
horizontal
|
|
117
|
+
>
|
|
118
|
+
{typesState?.types.length > 0 && typesState?.types.map((businessType: any, i: number) => (
|
|
119
|
+
<OButton
|
|
85
120
|
key={i}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
121
|
+
bgColor={(currentTypeSelected === businessType?.id) ? theme.colors.primary : theme.colors.backgroundGray200}
|
|
122
|
+
onClick={() => handleChangeServiceType(businessType?.id)}
|
|
123
|
+
text={`${businessType?.name} ${(currentTypeSelected === businessType?.id) ? ' X' : ''}`}
|
|
124
|
+
style={styles.businessType}
|
|
125
|
+
textStyle={{ fontSize: 10, color: (currentTypeSelected === businessType?.id) ? theme.colors.backgroundLight : theme.colors.textNormal }}
|
|
126
|
+
/>
|
|
89
127
|
))}
|
|
90
|
-
</
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
typesState?.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
<FlatList
|
|
128
|
+
</ServiceWrapper>
|
|
129
|
+
)
|
|
130
|
+
}
|
|
131
|
+
</>
|
|
132
|
+
) : (
|
|
133
|
+
<BCContainer>
|
|
134
|
+
{typesState?.loading && (
|
|
135
|
+
<View>
|
|
136
|
+
<Placeholder style={{ marginVertical: 10 }} Animation={Fade}>
|
|
137
|
+
<ScrollView
|
|
101
138
|
horizontal
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
</>
|
|
139
|
+
showsVerticalScrollIndicator={false}
|
|
140
|
+
showsHorizontalScrollIndicator={false}>
|
|
141
|
+
{[...Array(4)].map((_, i) => (
|
|
142
|
+
<View
|
|
143
|
+
key={i}
|
|
144
|
+
style={{ width: 80, borderRadius: 10, marginRight: 15 }}>
|
|
145
|
+
<PlaceholderLine height={80} noMargin />
|
|
146
|
+
</View>
|
|
147
|
+
))}
|
|
148
|
+
</ScrollView>
|
|
149
|
+
</Placeholder>
|
|
150
|
+
</View>
|
|
115
151
|
)}
|
|
116
|
-
|
|
152
|
+
{!typesState?.loading &&
|
|
153
|
+
!typesState?.error &&
|
|
154
|
+
typesState?.types &&
|
|
155
|
+
typesState?.types.length > 0 && (
|
|
156
|
+
<>
|
|
157
|
+
<BusinessCategories>
|
|
158
|
+
<FlatList
|
|
159
|
+
horizontal
|
|
160
|
+
showsHorizontalScrollIndicator={false}
|
|
161
|
+
data={typesState?.types}
|
|
162
|
+
renderItem={renderTypes}
|
|
163
|
+
keyExtractor={(type, index) => `${type.name}_${index}`}
|
|
164
|
+
/>
|
|
165
|
+
<TouchableOpacity
|
|
166
|
+
style={{ marginLeft: 15 }}
|
|
167
|
+
onPress={() => setIsOpenAllCategories(true)}
|
|
168
|
+
>
|
|
169
|
+
<OText size={12} color={theme.colors.primary}>{t('SEE_ALL', 'See All')}</OText>
|
|
170
|
+
</TouchableOpacity>
|
|
171
|
+
</BusinessCategories>
|
|
172
|
+
</>
|
|
173
|
+
)}
|
|
174
|
+
</BCContainer>
|
|
175
|
+
)}
|
|
176
|
+
|
|
117
177
|
<OModal
|
|
118
178
|
open={isOpenAllCategories}
|
|
119
179
|
onClose={() => setIsOpenAllCategories(false)}
|
|
@@ -138,9 +198,9 @@ export const BusinessTypeFilterUI = (props: BusinessTypeFilterParams) => {
|
|
|
138
198
|
isOpenAllCategories && setIsOpenAllCategories(false)
|
|
139
199
|
}}
|
|
140
200
|
>
|
|
141
|
-
{item.image ? (
|
|
201
|
+
{(defaultImage(item.name) || item.image) ? (
|
|
142
202
|
<OIcon
|
|
143
|
-
url={item.image}
|
|
203
|
+
url={typeof item.name === 'number' ? item.image || defaultImage(item.name) : defaultImage(item.name) || item.image}
|
|
144
204
|
style={styles.logo}
|
|
145
205
|
/>
|
|
146
206
|
) : (
|
|
@@ -195,6 +255,15 @@ const styles = StyleSheet.create({
|
|
|
195
255
|
allCategoriesWrapper: {
|
|
196
256
|
flexDirection: 'row',
|
|
197
257
|
flexWrap: 'wrap',
|
|
258
|
+
},
|
|
259
|
+
businessType: {
|
|
260
|
+
marginRight: 10,
|
|
261
|
+
borderRadius: 50,
|
|
262
|
+
paddingVertical: 4,
|
|
263
|
+
paddingLeft: 5,
|
|
264
|
+
paddingRight: 5,
|
|
265
|
+
height: 27,
|
|
266
|
+
borderWidth: 0
|
|
198
267
|
}
|
|
199
268
|
});
|
|
200
269
|
|