ordering-ui-react-native 0.16.67 → 0.16.68-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 +6 -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/BusinessInformation/index.tsx +19 -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/Messages/index.tsx +2 -2
- package/src/components/NotificationSetting/index.tsx +85 -0
- package/src/components/OrdersOption/index.tsx +54 -56
- package/src/components/PaymentOptions/index.tsx +298 -345
- package/src/components/PaymentOptionsWebView/index.tsx +119 -120
- package/src/components/SingleProductReview/index.tsx +7 -4
- 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/components/shared/OToast.tsx +4 -4
- package/src/index.tsx +2 -0
- package/src/types/@fatnlazycat/react-native-recaptcha-v3/index.d.ts +1 -0
- package/src/utils/index.tsx +2 -1
- package/themes/business/src/components/AcceptOrRejectOrder/index.tsx +260 -238
- package/themes/business/src/components/AcceptOrRejectOrder/styles.tsx +6 -4
- package/themes/business/src/components/BusinessController/index.tsx +2 -2
- package/themes/business/src/components/Chat/index.tsx +31 -31
- package/themes/business/src/components/DriverMap/index.tsx +7 -5
- package/themes/business/src/components/LoginForm/index.tsx +111 -74
- package/themes/business/src/components/MapView/index.tsx +14 -3
- package/themes/business/src/components/MessagesOption/index.tsx +11 -1
- package/themes/business/src/components/NewOrderNotification/index.tsx +31 -41
- package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +70 -43
- package/themes/business/src/components/OrderDetails/OrderHeaderComponent.tsx +3 -3
- package/themes/business/src/components/OrdersListManager/index.tsx +10 -3
- package/themes/business/src/components/OrdersOption/index.tsx +74 -76
- 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/OrderItem.tsx +250 -0
- package/themes/business/src/components/PreviousOrders/OrdersGroupedItem.tsx +115 -0
- package/themes/business/src/components/PreviousOrders/index.tsx +440 -245
- package/themes/business/src/components/PreviousOrders/styles.tsx +31 -3
- package/themes/business/src/components/ProductItemAccordion/index.tsx +3 -2
- package/themes/business/src/components/ReviewCustomer/index.tsx +39 -15
- 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/OLink.tsx +33 -13
- package/themes/business/src/components/shared/OText.tsx +8 -2
- package/themes/business/src/types/index.tsx +22 -10
- 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/BusinessesListing/index.tsx +2 -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/ProductForm/index.tsx +1 -14
- 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 +8 -0
- package/themes/original/src/components/AddressDetails/index.tsx +10 -8
- package/themes/original/src/components/AddressForm/index.tsx +153 -137
- package/themes/original/src/components/AddressList/index.tsx +18 -18
- package/themes/original/src/components/AddressList/styles.tsx +4 -2
- package/themes/original/src/components/AppleLogin/index.tsx +4 -4
- package/themes/original/src/components/BusinessBasicInformation/index.tsx +49 -33
- package/themes/original/src/components/BusinessController/index.tsx +101 -70
- package/themes/original/src/components/BusinessController/styles.tsx +14 -9
- package/themes/original/src/components/BusinessInformation/index.tsx +10 -31
- package/themes/original/src/components/BusinessItemAccordion/index.tsx +12 -6
- 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 +87 -142
- 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 +54 -60
- package/themes/original/src/components/BusinessProductsList/styles.tsx +0 -3
- package/themes/original/src/components/BusinessProductsListing/index.tsx +561 -477
- package/themes/original/src/components/BusinessProductsListing/styles.tsx +13 -12
- package/themes/original/src/components/BusinessTypeFilter/index.tsx +3 -2
- package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +2 -1
- package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +93 -98
- package/themes/original/src/components/BusinessesListing/Layout/Original/styles.tsx +1 -9
- package/themes/original/src/components/BusinessesListing/index.tsx +13 -8
- package/themes/original/src/components/Cart/index.tsx +63 -38
- package/themes/original/src/components/CartContent/index.tsx +80 -18
- package/themes/original/src/components/CartContent/styles.tsx +11 -1
- package/themes/original/src/components/Checkout/index.tsx +110 -114
- package/themes/original/src/components/Checkout/styles.tsx +4 -3
- package/themes/original/src/components/CitiesControl/index.tsx +89 -0
- package/themes/original/src/components/CitiesControl/styles.tsx +17 -0
- package/themes/original/src/components/DriverTips/index.tsx +47 -37
- package/themes/original/src/components/DriverTips/styles.tsx +2 -1
- package/themes/original/src/components/Favorite/index.tsx +7 -4
- package/themes/original/src/components/Favorite/styles.tsx +1 -1
- package/themes/original/src/components/FavoriteList/index.tsx +69 -45
- package/themes/original/src/components/FloatingButton/index.tsx +1 -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/GPSButton/styles.ts +3 -3
- package/themes/original/src/components/GoogleMap/index.tsx +10 -1
- package/themes/original/src/components/Help/index.tsx +7 -7
- package/themes/original/src/components/HelpAccountAndPayment/index.tsx +14 -20
- package/themes/original/src/components/HelpAccountAndPayment/styles.tsx +6 -0
- package/themes/original/src/components/HelpGuide/index.tsx +12 -11
- package/themes/original/src/components/HelpGuide/styles.tsx +5 -0
- package/themes/original/src/components/HelpOrder/index.tsx +12 -20
- package/themes/original/src/components/HelpOrder/styles.tsx +8 -1
- package/themes/original/src/components/LanguageSelector/index.tsx +19 -14
- package/themes/original/src/components/LoginForm/Otp/index.tsx +89 -73
- package/themes/original/src/components/LoginForm/Otp/styles.tsx +0 -1
- package/themes/original/src/components/LoginForm/index.tsx +98 -41
- package/themes/original/src/components/LottieAnimation/index.tsx +78 -0
- package/themes/original/src/components/MessageListing/index.tsx +7 -7
- package/themes/original/src/components/Messages/index.tsx +35 -20
- package/themes/original/src/components/MomentOption/index.tsx +17 -11
- package/themes/original/src/components/MultiCart/index.tsx +50 -0
- package/themes/original/src/components/MultiCartsPaymethodsAndWallets/index.tsx +92 -93
- package/themes/original/src/components/MultiCheckout/index.tsx +158 -77
- package/themes/original/src/components/MultiOrdersDetails/index.tsx +60 -33
- package/themes/original/src/components/MyOrders/index.tsx +86 -20
- package/themes/original/src/components/NavBar/index.tsx +7 -6
- 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 +144 -0
- package/themes/original/src/components/Notifications/styles.tsx +20 -0
- package/themes/original/src/components/OrderDetails/index.tsx +114 -15
- 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 +77 -66
- package/themes/original/src/components/OrderProgress/styles.tsx +5 -0
- package/themes/original/src/components/OrderSummary/index.tsx +3 -36
- package/themes/original/src/components/OrderTypeSelector/index.tsx +13 -6
- package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/index.tsx +94 -98
- package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/index.tsx +3 -0
- package/themes/original/src/components/OrdersOption/index.tsx +97 -55
- package/themes/original/src/components/PaymentOptionStripe/styles.tsx +1 -1
- package/themes/original/src/components/PaymentOptionWallet/index.tsx +56 -56
- package/themes/original/src/components/PaymentOptions/index.tsx +1 -2
- package/themes/original/src/components/PhoneInputNumber/index.tsx +1 -1
- package/themes/original/src/components/PlaceSpot/index.tsx +249 -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 +212 -253
- package/themes/original/src/components/ProductForm/styles.tsx +5 -8
- package/themes/original/src/components/ProductItemAccordion/index.tsx +199 -128
- package/themes/original/src/components/ProductOptionSubOption/index.tsx +17 -9
- package/themes/original/src/components/ProductOptionSubOption/styles.tsx +0 -1
- package/themes/original/src/components/ProfessionalFilter/index.tsx +2 -1
- package/themes/original/src/components/ProfessionalProfile/index.tsx +19 -8
- package/themes/original/src/components/Promotions/index.tsx +234 -220
- package/themes/original/src/components/Promotions/styles.tsx +7 -2
- package/themes/original/src/components/ReviewDriver/index.tsx +3 -3
- package/themes/original/src/components/ReviewOrder/index.tsx +43 -11
- package/themes/original/src/components/ReviewOrder/styles.tsx +7 -0
- package/themes/original/src/components/ReviewProducts/index.tsx +8 -5
- package/themes/original/src/components/ReviewTrigger/index.tsx +27 -9
- package/themes/original/src/components/ReviewTrigger/styles.tsx +8 -1
- package/themes/original/src/components/ScheduleAccordion/index.tsx +68 -0
- package/themes/original/src/components/ScheduleAccordion/styles.tsx +14 -0
- package/themes/original/src/components/ServiceForm/index.tsx +328 -264
- package/themes/original/src/components/SignupForm/index.tsx +134 -89
- package/themes/original/src/components/SingleOrderCard/index.tsx +129 -54
- package/themes/original/src/components/SingleOrderCard/styles.tsx +10 -8
- package/themes/original/src/components/SingleProductCard/index.tsx +101 -85
- package/themes/original/src/components/SingleProductCard/styles.tsx +2 -9
- 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/StripeCardsList/index.tsx +1 -1
- package/themes/original/src/components/StripeElementsForm/index.tsx +13 -2
- package/themes/original/src/components/UpsellingProducts/index.tsx +244 -215
- package/themes/original/src/components/UpsellingProducts/styles.tsx +12 -1
- package/themes/original/src/components/UserDetails/index.tsx +5 -3
- package/themes/original/src/components/UserFormDetails/index.tsx +6 -48
- package/themes/original/src/components/UserProfile/index.tsx +58 -35
- package/themes/original/src/components/UserProfile/styles.ts +17 -0
- package/themes/original/src/components/UserProfileForm/index.tsx +19 -28
- package/themes/original/src/components/UserProfileForm/styles.tsx +7 -0
- 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/HeaderTitle.tsx +8 -3
- package/themes/original/src/components/shared/OBottomPopup.tsx +6 -4
- package/themes/original/src/components/shared/OButton.tsx +9 -4
- package/themes/original/src/components/shared/OIcon.tsx +8 -1
- package/themes/original/src/components/shared/OInput.tsx +10 -1
- package/themes/original/src/layouts/Container.tsx +13 -9
- package/themes/original/src/types/index.tsx +55 -5
- package/themes/original/src/utils/index.tsx +103 -58
- package/themes/uber-eats/src/components/BusinessesListing/index.tsx +1 -1
|
@@ -11,6 +11,8 @@ import { StyleSheet } from 'react-native';
|
|
|
11
11
|
import { useTheme } from 'styled-components/native';
|
|
12
12
|
import { shape } from '../../utils'
|
|
13
13
|
import { CategoryDescriptionMemoized } from './CategoryDescription';
|
|
14
|
+
import { OrderItAgain } from '../OrderItAgain'
|
|
15
|
+
import { SubcategoriesComponentMemoized } from './SubcategoriesComponent';
|
|
14
16
|
|
|
15
17
|
const BusinessProductsListUI = (props: BusinessProductsListParams) => {
|
|
16
18
|
const {
|
|
@@ -35,6 +37,7 @@ const BusinessProductsListUI = (props: BusinessProductsListParams) => {
|
|
|
35
37
|
onClickCategory,
|
|
36
38
|
lazyLoadProductsRecommended,
|
|
37
39
|
handleUpdateProducts,
|
|
40
|
+
previouslyProducts,
|
|
38
41
|
isFiltMode,
|
|
39
42
|
navigation
|
|
40
43
|
} = props;
|
|
@@ -68,51 +71,29 @@ const BusinessProductsListUI = (props: BusinessProductsListParams) => {
|
|
|
68
71
|
}
|
|
69
72
|
}
|
|
70
73
|
|
|
71
|
-
const SubcategoriesComponent = ({ category }: any) => {
|
|
72
|
-
const allsubcategorySelected = !subcategoriesSelected?.some((subcategory: any) => category?.id === subcategory?.parent_category_id)
|
|
73
|
-
|
|
74
|
-
return (
|
|
75
|
-
<SubCategoriesContainer>
|
|
76
|
-
<ContainerButton
|
|
77
|
-
isSelected={allsubcategorySelected}
|
|
78
|
-
>
|
|
79
|
-
<OButton
|
|
80
|
-
onClick={() => onClickSubcategory(null, category)}
|
|
81
|
-
bgColor={allsubcategorySelected ? theme.colors.primary : theme.colors.backgroundGray}
|
|
82
|
-
text={`${t('ALL', 'All')} ${allsubcategorySelected ? 'X' : ''}`}
|
|
83
|
-
style={bpStyles.categoryButtonStyle}
|
|
84
|
-
textStyle={{ color: allsubcategorySelected ? theme.colors.white : theme.colors.textNormal, fontSize: 12 }}
|
|
85
|
-
/>
|
|
86
|
-
</ContainerButton>
|
|
87
|
-
{category?.subcategories?.map((subcategory: any) => {
|
|
88
|
-
const isSubcategorySelected = subcategoriesSelected?.find((_subcategory: any) => _subcategory?.id === subcategory?.id)
|
|
89
|
-
return (
|
|
90
|
-
<ContainerButton
|
|
91
|
-
key={subcategory?.id}
|
|
92
|
-
isSelected={isSubcategorySelected}
|
|
93
|
-
>
|
|
94
|
-
<OButton
|
|
95
|
-
onClick={() => onClickSubcategory(subcategory, category)}
|
|
96
|
-
bgColor={isSubcategorySelected ? theme.colors.primary : theme.colors.backgroundGray}
|
|
97
|
-
text={`${subcategory?.name} ${isSubcategorySelected ? 'X' : ''}`}
|
|
98
|
-
style={bpStyles.categoryButtonStyle}
|
|
99
|
-
textStyle={{ color: isSubcategorySelected ? theme.colors.white : theme.colors.textNormal, fontSize: 12 }}
|
|
100
|
-
/>
|
|
101
|
-
</ContainerButton>
|
|
102
|
-
)
|
|
103
|
-
}
|
|
104
|
-
)}
|
|
105
|
-
</SubCategoriesContainer>
|
|
106
|
-
)
|
|
107
|
-
}
|
|
108
|
-
|
|
109
74
|
return (
|
|
110
75
|
<ProductsContainer renderToHardwareTextureAndroid={categoryState.loading || isBusinessLoading}>
|
|
111
76
|
<HeaderWrapper>
|
|
112
77
|
{category?.subcategories?.length > 0 && (
|
|
113
|
-
<
|
|
78
|
+
<SubcategoriesComponentMemoized
|
|
79
|
+
category={category}
|
|
80
|
+
subcategoriesSelected={subcategoriesSelected}
|
|
81
|
+
onClickSubcategory={onClickSubcategory}
|
|
82
|
+
/>
|
|
114
83
|
)}
|
|
115
84
|
</HeaderWrapper>
|
|
85
|
+
{previouslyProducts?.length > 0 && (
|
|
86
|
+
<OrderItAgain
|
|
87
|
+
onProductClick={onProductClick}
|
|
88
|
+
productList={previouslyProducts}
|
|
89
|
+
businessId={businessId}
|
|
90
|
+
categoryState={categoryState}
|
|
91
|
+
navigation={navigation}
|
|
92
|
+
handleUpdateProducts={handleUpdateProducts}
|
|
93
|
+
currentCart={currentCart}
|
|
94
|
+
searchValue={searchValue}
|
|
95
|
+
/>
|
|
96
|
+
)}
|
|
116
97
|
{category.id &&
|
|
117
98
|
categoryState.products
|
|
118
99
|
?.filter((product: any) =>
|
|
@@ -123,6 +104,7 @@ const BusinessProductsListUI = (props: BusinessProductsListParams) => {
|
|
|
123
104
|
<SingleProductCard
|
|
124
105
|
key={'prod_' + product.id + `_${i}`}
|
|
125
106
|
isSoldOut={product.inventoried && !product.quantity}
|
|
107
|
+
enableIntersection={!isFiltMode && categoryState.products?.length < 80}
|
|
126
108
|
product={product}
|
|
127
109
|
businessId={businessId}
|
|
128
110
|
categoryState={categoryState}
|
|
@@ -150,6 +132,7 @@ const BusinessProductsListUI = (props: BusinessProductsListParams) => {
|
|
|
150
132
|
key={'feat_' + product.id + `_${i}`}
|
|
151
133
|
isSoldOut={product.inventoried && !product.quantity}
|
|
152
134
|
product={product}
|
|
135
|
+
enableIntersection={!isFiltMode && categoryState.products?.length < 80}
|
|
153
136
|
businessId={businessId}
|
|
154
137
|
categoryState={categoryState}
|
|
155
138
|
onProductClick={onProductClick}
|
|
@@ -183,14 +166,16 @@ const BusinessProductsListUI = (props: BusinessProductsListParams) => {
|
|
|
183
166
|
style={bpStyles.catWrap}
|
|
184
167
|
onLayout={(event: any) => handleOnLayout(event, category.id)}
|
|
185
168
|
>
|
|
186
|
-
|
|
187
|
-
<
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
169
|
+
{!!category.image && (
|
|
170
|
+
<View style={bpStyles.catIcon}>
|
|
171
|
+
<OIcon
|
|
172
|
+
url={optimizeImage(category.image, 'h_250,c_limit')}
|
|
173
|
+
width={41}
|
|
174
|
+
height={41}
|
|
175
|
+
style={{ borderRadius: 7.6 }}
|
|
176
|
+
/>
|
|
177
|
+
</View>
|
|
178
|
+
)}
|
|
194
179
|
<OText size={16} weight="600">
|
|
195
180
|
{category.name}
|
|
196
181
|
</OText>
|
|
@@ -236,13 +221,17 @@ const BusinessProductsListUI = (props: BusinessProductsListParams) => {
|
|
|
236
221
|
</View>
|
|
237
222
|
)}
|
|
238
223
|
{category?.subcategories?.length > 0 && !isFiltMode && (
|
|
239
|
-
<
|
|
224
|
+
<SubcategoriesComponentMemoized
|
|
225
|
+
category={category}
|
|
226
|
+
subcategoriesSelected={subcategoriesSelected}
|
|
227
|
+
onClickSubcategory={onClickSubcategory}
|
|
228
|
+
/>
|
|
240
229
|
)}
|
|
241
230
|
<>
|
|
242
231
|
{products.sort((a: any, b: any) => a.rank - b.rank).map((product: any, i: any) => (
|
|
243
232
|
<SingleProductCard
|
|
244
233
|
key={`${product?.id}_${i}`}
|
|
245
|
-
enableIntersection
|
|
234
|
+
enableIntersection={!isFiltMode && categoryState.products?.length < 80}
|
|
246
235
|
isSoldOut={product.inventoried && !product.quantity}
|
|
247
236
|
businessId={businessId}
|
|
248
237
|
product={product}
|
|
@@ -264,19 +253,24 @@ const BusinessProductsListUI = (props: BusinessProductsListParams) => {
|
|
|
264
253
|
<>
|
|
265
254
|
{[...Array(categoryState?.pagination?.nextPageItems).keys()].map(
|
|
266
255
|
(item, i) => (
|
|
267
|
-
<
|
|
268
|
-
<
|
|
256
|
+
<View style={{ minHeight: 165, marginBottom: 28, padding: 12 }} key={i}>
|
|
257
|
+
<Placeholder style={{ padding: 5 }} Animation={Fade}>
|
|
258
|
+
<View style={{ flexDirection: 'row' }}>
|
|
259
|
+
<Placeholder style={{ paddingVertical: 10, flex: 1 }}>
|
|
260
|
+
<PlaceholderLine width={60} style={{ marginBottom: 15 }} />
|
|
261
|
+
<PlaceholderLine width={20} />
|
|
262
|
+
</Placeholder>
|
|
263
|
+
<PlaceholderLine
|
|
264
|
+
width={24}
|
|
265
|
+
height={70}
|
|
266
|
+
style={{ marginLeft: 10, marginBottom: 10 }}
|
|
267
|
+
/>
|
|
268
|
+
</View>
|
|
269
269
|
<PlaceholderLine
|
|
270
|
-
|
|
271
|
-
height={70}
|
|
272
|
-
style={{ marginRight: 10, marginBottom: 10 }}
|
|
270
|
+
height={52}
|
|
273
271
|
/>
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
<PlaceholderLine width={20} />
|
|
277
|
-
</Placeholder>
|
|
278
|
-
</View>
|
|
279
|
-
</Placeholder>
|
|
272
|
+
</Placeholder>
|
|
273
|
+
</View>
|
|
280
274
|
),
|
|
281
275
|
)}
|
|
282
276
|
</>
|
|
@@ -18,15 +18,12 @@ export const RibbonBox = styled.View`
|
|
|
18
18
|
background-color: ${(props: any) => props.theme.colors.primary};
|
|
19
19
|
padding: 2px 8px;
|
|
20
20
|
max-width: 180px;
|
|
21
|
-
|
|
22
21
|
${(props: any) => props.bgColor && css`
|
|
23
22
|
background-color: ${props.bgColor};
|
|
24
23
|
`}
|
|
25
|
-
|
|
26
24
|
${(props: any) => props.isRoundRect && css`
|
|
27
25
|
border-radius: 7.6px;
|
|
28
26
|
`}
|
|
29
|
-
|
|
30
27
|
${(props: any) => props.isCapsule && css`
|
|
31
28
|
border-radius: 50px;
|
|
32
29
|
`}
|