ordering-ui-react-native 0.18.55 → 0.18.56-crash-driver-1
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 -4
- package/src/components/BusinessInformation/index.tsx +10 -9
- package/src/components/PaymentOptionsWebView/index.tsx +30 -8
- package/src/components/PhoneInputNumber/index.tsx +6 -2
- package/src/components/StripeMethodForm/index.tsx +60 -55
- package/src/components/shared/OToast.tsx +3 -2
- package/src/types/index.tsx +3 -1
- package/src/utils/index.tsx +2 -2
- package/themes/business/index.tsx +6 -0
- package/themes/business/src/components/AcceptOrRejectOrder/index.tsx +15 -8
- package/themes/business/src/components/BusinessController/index.tsx +19 -17
- package/themes/business/src/components/BusinessProductList/AccordionDropdown.tsx +63 -0
- package/themes/business/src/components/BusinessProductList/IterateCategories.tsx +108 -0
- package/themes/business/src/components/BusinessProductList/ProductList.tsx +196 -0
- package/themes/business/src/components/BusinessProductList/index.tsx +196 -0
- package/themes/business/src/components/BusinessProductList/styles.tsx +10 -0
- package/themes/business/src/components/Chat/index.tsx +48 -19
- package/themes/business/src/components/DriverMap/index.tsx +36 -23
- package/themes/business/src/components/DriverSchedule/index.tsx +45 -8
- package/themes/business/src/components/FloatingButton/index.tsx +34 -31
- package/themes/business/src/components/GoogleMap/index.tsx +15 -8
- package/themes/business/src/components/Home/index.tsx +5 -1
- package/themes/business/src/components/LanguageSelector/index.tsx +1 -2
- package/themes/business/src/components/LanguageSelector/lang_country.json +515 -70
- package/themes/business/src/components/LoginForm/index.tsx +2 -2
- package/themes/business/src/components/LogoutButton/index.tsx +1 -1
- package/themes/business/src/components/MapView/index.tsx +28 -17
- package/themes/business/src/components/MessagesOption/index.tsx +22 -94
- package/themes/business/src/components/NewOrderNotification/index.tsx +162 -106
- package/themes/business/src/components/NotFoundSource/index.tsx +2 -2
- package/themes/business/src/components/OrderDetails/Business.tsx +53 -3
- package/themes/business/src/components/OrderDetails/Delivery.tsx +209 -13
- package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +107 -75
- package/themes/business/src/components/OrderDetails/OrderHeaderComponent.tsx +79 -41
- package/themes/business/src/components/OrderDetails/usePrinterCommands.tsx +220 -0
- package/themes/business/src/components/OrderDetailsLogistic/index.tsx +7 -2
- package/themes/business/src/components/OrderMessage/index.tsx +1 -1
- package/themes/business/src/components/OrderSummary/index.tsx +245 -82
- package/themes/business/src/components/OrdersListManager/index.tsx +7 -2
- package/themes/business/src/components/OrdersListManager/utils.tsx +1 -1
- package/themes/business/src/components/OrdersOption/index.tsx +125 -48
- package/themes/business/src/components/PhoneInputNumber/index.tsx +8 -5
- package/themes/business/src/components/PreviousMessages/FooterMessageComponent.tsx +103 -0
- package/themes/business/src/components/PreviousMessages/index.tsx +97 -55
- package/themes/business/src/components/PreviousOrders/OrderItem.tsx +43 -41
- package/themes/business/src/components/PreviousOrders/OrderList.tsx +93 -0
- package/themes/business/src/components/PreviousOrders/OrdersGroupedItem.tsx +1 -1
- package/themes/business/src/components/PreviousOrders/index.tsx +195 -221
- package/themes/business/src/components/PreviousOrders/styles.tsx +10 -0
- package/themes/business/src/components/PrinterEdition/index.tsx +363 -0
- package/themes/business/src/components/PrinterEdition/styles.tsx +61 -0
- package/themes/business/src/components/PrinterSettings/index.tsx +267 -0
- package/themes/business/src/components/PrinterSettings/styles.tsx +30 -0
- package/themes/business/src/components/ProductItemAccordion/index.tsx +2 -2
- package/themes/business/src/components/ReviewCustomer/index.tsx +1 -1
- package/themes/business/src/components/SearchBar/index.tsx +2 -1
- package/themes/business/src/components/Sessions/index.tsx +187 -0
- package/themes/business/src/components/Sessions/styles.tsx +20 -0
- package/themes/business/src/components/StoresList/index.tsx +4 -3
- package/themes/business/src/components/UserFormDetails/index.tsx +111 -107
- package/themes/business/src/components/UserProfileForm/index.tsx +103 -53
- package/themes/business/src/components/WebsocketStatus/index.tsx +171 -0
- package/themes/business/src/components/WebsocketStatus/styles.tsx +28 -0
- package/themes/business/src/components/shared/OInput.tsx +2 -0
- package/themes/business/src/hooks/useLocation.tsx +5 -4
- package/themes/business/src/types/index.tsx +21 -1
- package/themes/business/src/utils/index.tsx +5 -0
- package/themes/kiosk/src/components/Checkout/index.tsx +5 -3
- package/themes/kiosk/src/components/CustomerName/index.tsx +1 -1
- package/themes/kiosk/src/components/Intro/index.tsx +16 -1
- package/themes/kiosk/src/components/LoginForm/index.tsx +131 -101
- package/themes/kiosk/src/components/PaymentOptions/index.tsx +57 -121
- package/themes/original/index.tsx +11 -3
- package/themes/original/src/components/AddressDetails/index.tsx +20 -10
- package/themes/original/src/components/AddressForm/index.tsx +41 -20
- package/themes/original/src/components/AddressForm/styles.tsx +1 -1
- package/themes/original/src/components/AddressList/index.tsx +22 -11
- package/themes/original/src/components/AddressList/styles.tsx +4 -4
- package/themes/original/src/components/AnalyticsSegment/index.tsx +10 -7
- package/themes/original/src/components/AppleLogin/styles.tsx +3 -1
- package/themes/original/src/components/BusinessBasicInformation/index.tsx +8 -11
- package/themes/original/src/components/BusinessBasicInformation/styles.tsx +1 -1
- package/themes/original/src/components/BusinessController/index.tsx +40 -43
- package/themes/original/src/components/BusinessController/styles.tsx +12 -12
- package/themes/original/src/components/BusinessInformation/index.tsx +45 -17
- package/themes/original/src/components/BusinessInformation/styles.tsx +2 -2
- package/themes/original/src/components/BusinessItemAccordion/index.tsx +11 -7
- package/themes/original/src/components/BusinessListingSearch/BusinessSearchFooter.tsx +317 -0
- package/themes/original/src/components/BusinessListingSearch/BusinessSearchHeader.tsx +96 -0
- package/themes/original/src/components/BusinessListingSearch/MaxSectionItem/index.tsx +1 -1
- package/themes/original/src/components/BusinessListingSearch/index.tsx +57 -361
- package/themes/original/src/components/BusinessListingSearch/styles.tsx +1 -1
- package/themes/original/src/components/BusinessPreorder/index.tsx +9 -7
- package/themes/original/src/components/BusinessProductsCategories/index.tsx +2 -3
- package/themes/original/src/components/BusinessProductsList/index.tsx +5 -4
- package/themes/original/src/components/BusinessProductsListing/index.tsx +67 -28
- package/themes/original/src/components/BusinessProductsListing/styles.tsx +3 -4
- package/themes/original/src/components/BusinessReviews/index.tsx +1 -1
- package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +1 -1
- package/themes/original/src/components/BusinessesListing/Layout/Appointment/styles.tsx +5 -5
- package/themes/original/src/components/BusinessesListing/Layout/Original/FlatListBusinessListFooter.tsx +69 -0
- package/themes/original/src/components/BusinessesListing/Layout/Original/FlatListBusinessListHeader.tsx +406 -0
- package/themes/original/src/components/BusinessesListing/Layout/Original/FlatListBusinessListing.tsx +76 -0
- package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +30 -404
- package/themes/original/src/components/BusinessesListing/Layout/Original/styles.tsx +2 -2
- package/themes/original/src/components/Cart/index.tsx +51 -40
- package/themes/original/src/components/CartContent/index.tsx +98 -54
- package/themes/original/src/components/CartStoresListing/styles.tsx +2 -2
- package/themes/original/src/components/Checkout/index.tsx +308 -75
- package/themes/original/src/components/Checkout/styles.tsx +17 -0
- package/themes/original/src/components/CitiesControl/styles.tsx +1 -1
- package/themes/original/src/components/DatePicker/index.tsx +33 -0
- package/themes/original/src/components/DatePicker/styles.tsx +20 -0
- package/themes/original/src/components/DriverTips/index.tsx +6 -3
- package/themes/original/src/components/FacebookLogin/styles.tsx +3 -1
- package/themes/original/src/components/Favorite/index.tsx +8 -4
- package/themes/original/src/components/Favorite/styles.tsx +0 -2
- package/themes/original/src/components/FloatingButton/styles.tsx +1 -1
- package/themes/original/src/components/ForgotPasswordForm/index.tsx +5 -0
- package/themes/original/src/components/GPSButton/index.tsx +7 -5
- package/themes/original/src/components/GiftCard/GiftCardOrdersList/index.tsx +64 -0
- package/themes/original/src/components/GiftCard/GiftCardOrdersList/styles.tsx +8 -0
- package/themes/original/src/components/GiftCard/GiftCardUI/index.tsx +8 -3
- package/themes/original/src/components/GiftCard/PurchaseGiftCard/index.tsx +36 -3
- package/themes/original/src/components/GiftCard/PurchaseGiftCard/styles.tsx +1 -1
- package/themes/original/src/components/GiftCard/RedeemGiftCard/index.tsx +84 -8
- package/themes/original/src/components/GiftCard/RedeemGiftCard/styles.tsx +1 -1
- package/themes/original/src/components/GiftCard/SendGiftCard/index.tsx +2 -2
- package/themes/original/src/components/GiftCard/SendGiftCard/styles.tsx +1 -1
- package/themes/original/src/components/GiftCard/SingleGiftCard/index.tsx +101 -0
- package/themes/original/src/components/GiftCard/SingleGiftCard/styles.tsx +4 -0
- package/themes/original/src/components/GiftCard/VerticalGiftCardOrdersLayout/index.tsx +83 -0
- package/themes/original/src/components/GiftCard/VerticalGiftCardOrdersLayout/styles.tsx +9 -0
- package/themes/original/src/components/GoogleLogin/styles.tsx +1 -1
- package/themes/original/src/components/GoogleMap/index.tsx +52 -5
- package/themes/original/src/components/Help/index.tsx +7 -0
- package/themes/original/src/components/HelpAccountAndPayment/index.tsx +5 -0
- package/themes/original/src/components/HelpGuide/index.tsx +5 -0
- package/themes/original/src/components/HelpOrder/index.tsx +5 -0
- package/themes/original/src/components/HighestRatedBusinesses/index.tsx +1 -1
- package/themes/original/src/components/HighestRatedBusinesses/styles.tsx +1 -1
- package/themes/original/src/components/Home/index.tsx +3 -2
- package/themes/original/src/components/LastOrder/index.tsx +2 -1
- package/themes/original/src/components/LastOrders/index.tsx +2 -1
- package/themes/original/src/components/LoginForm/Otp/index.tsx +79 -25
- package/themes/original/src/components/LoginForm/index.tsx +38 -14
- package/themes/original/src/components/MessageListing/index.tsx +6 -0
- package/themes/original/src/components/Messages/index.tsx +9 -3
- package/themes/original/src/components/Messages/styles.tsx +1 -1
- package/themes/original/src/components/MomentOption/index.tsx +20 -5
- package/themes/original/src/components/MomentSelector/index.tsx +1 -1
- package/themes/original/src/components/MultiCart/index.tsx +1 -1
- package/themes/original/src/components/MultiCartsPaymethodsAndWallets/index.tsx +48 -15
- package/themes/original/src/components/MultiCheckout/index.tsx +295 -56
- package/themes/original/src/components/MultiCheckout/styles.tsx +20 -1
- package/themes/original/src/components/MultiOrdersDetails/index.tsx +21 -16
- package/themes/original/src/components/MyOrders/index.tsx +37 -39
- package/themes/original/src/components/NavBar/index.tsx +15 -14
- package/themes/original/src/components/NetworkError/index.tsx +2 -3
- package/themes/original/src/components/NetworkError/styles.tsx +2 -2
- package/themes/original/src/components/Notifications/index.tsx +9 -8
- package/themes/original/src/components/Notifications/styles.tsx +0 -1
- package/themes/original/src/components/OrderDetails/OrderEta.tsx +21 -6
- package/themes/original/src/components/OrderDetails/OrderHistory.tsx +14 -5
- package/themes/original/src/components/OrderDetails/index.tsx +718 -667
- package/themes/original/src/components/OrderDetails/styles.tsx +24 -7
- package/themes/original/src/components/OrderProgress/index.tsx +50 -14
- package/themes/original/src/components/OrderProgress/styles.tsx +1 -1
- package/themes/original/src/components/OrderSummary/index.tsx +26 -34
- package/themes/original/src/components/OrderTypeSelector/index.tsx +5 -0
- package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/styles.tsx +1 -1
- package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/styles.tsx +1 -1
- package/themes/original/src/components/OrdersOption/index.tsx +14 -6
- package/themes/original/src/components/OrdersOption/styles.tsx +1 -1
- package/themes/original/src/components/PageBanner/index.tsx +3 -0
- package/themes/original/src/components/PaymentOptionCard/index.tsx +182 -0
- package/themes/original/src/components/PaymentOptionStripe/styles.tsx +3 -0
- package/themes/original/src/components/PaymentOptions/index.tsx +118 -37
- package/themes/original/src/components/PhoneInputNumber/index.tsx +15 -1
- package/themes/original/src/components/PreviousOrders/index.tsx +2 -0
- package/themes/original/src/components/ProductForm/ActionButton.tsx +122 -0
- package/themes/original/src/components/ProductForm/ExtraOptions.tsx +56 -0
- package/themes/original/src/components/ProductForm/index.tsx +193 -267
- package/themes/original/src/components/ProductForm/styles.tsx +1 -1
- package/themes/original/src/components/ProductItemAccordion/index.tsx +55 -42
- package/themes/original/src/components/ProductItemAccordion/styles.tsx +3 -4
- package/themes/original/src/components/ProductOptionSubOption/index.tsx +120 -79
- package/themes/original/src/components/ProductOptionSubOption/styles.tsx +10 -9
- package/themes/original/src/components/ProfessionalProfile/styles.tsx +3 -3
- package/themes/original/src/components/Promotions/index.tsx +13 -11
- package/themes/original/src/components/Promotions/styles.tsx +0 -2
- package/themes/original/src/components/ReviewDriver/index.tsx +5 -0
- package/themes/original/src/components/ReviewDriver/styles.tsx +1 -1
- package/themes/original/src/components/ReviewOrder/index.tsx +5 -0
- package/themes/original/src/components/ReviewOrder/styles.tsx +1 -1
- package/themes/original/src/components/ReviewProducts/index.tsx +5 -0
- package/themes/original/src/components/ReviewProducts/styles.tsx +1 -1
- package/themes/original/src/components/ScheduleAccordion/index.tsx +3 -3
- package/themes/original/src/components/ServiceForm/index.tsx +2 -2
- package/themes/original/src/components/ServiceForm/styles.tsx +4 -4
- package/themes/original/src/components/Sessions/index.tsx +5 -0
- package/themes/original/src/components/SignupForm/index.tsx +76 -60
- package/themes/original/src/components/SingleOrderCard/index.tsx +6 -5
- package/themes/original/src/components/SingleProductCard/index.tsx +5 -4
- package/themes/original/src/components/SingleProductCard/styles.tsx +0 -5
- package/themes/original/src/components/StripeCardsList/index.tsx +26 -8
- package/themes/original/src/components/StripeElementsForm/index.tsx +80 -62
- package/themes/original/src/components/StripeElementsForm/naked.tsx +59 -1
- package/themes/original/src/components/UpsellingProducts/UpsellingContent.tsx +170 -0
- package/themes/original/src/components/UpsellingProducts/UpsellingLayout.tsx +91 -0
- package/themes/original/src/components/UpsellingProducts/index.tsx +15 -199
- package/themes/original/src/components/UpsellingProducts/styles.tsx +19 -0
- package/themes/original/src/components/UserFormDetails/index.tsx +128 -79
- package/themes/original/src/components/UserFormDetails/styles.tsx +8 -1
- package/themes/original/src/components/UserProfile/index.tsx +5 -4
- package/themes/original/src/components/UserProfileForm/index.tsx +35 -36
- package/themes/original/src/components/UserVerification/index.tsx +55 -50
- package/themes/original/src/components/WalletTransactionItem/index.tsx +2 -2
- package/themes/original/src/components/WalletTransactions/styles.tsx +1 -0
- package/themes/original/src/components/Wallets/index.tsx +35 -49
- package/themes/original/src/components/Wallets/styles.tsx +3 -4
- package/themes/original/src/components/WebsocketStatus/index.tsx +172 -0
- package/themes/original/src/components/WebsocketStatus/styles.tsx +28 -0
- package/themes/original/src/components/shared/HeaderTitle.tsx +1 -1
- package/themes/original/src/components/shared/OButton.tsx +5 -5
- package/themes/original/src/components/shared/OInput.tsx +7 -4
- package/themes/original/src/components/shared/OModal.tsx +12 -14
- package/themes/original/src/layouts/Container.tsx +5 -3
- package/themes/original/src/types/index.tsx +13 -2
- package/themes/original/src/utils/index.tsx +124 -22
- package/src/navigators/BottomNavigator.tsx +0 -117
- package/src/navigators/CheckoutNavigator.tsx +0 -66
- package/src/navigators/HomeNavigator.tsx +0 -202
- package/src/navigators/NavigationRef.tsx +0 -7
- package/src/navigators/RootNavigator.tsx +0 -269
- package/src/pages/Account.tsx +0 -34
- package/src/pages/AddressForm.tsx +0 -62
- package/src/pages/AddressList.tsx +0 -24
- package/src/pages/BusinessProductsList.tsx +0 -81
- package/src/pages/BusinessesListing.tsx +0 -43
- package/src/pages/CartList.tsx +0 -49
- package/src/pages/Checkout.tsx +0 -101
- package/src/pages/ForgotPassword.tsx +0 -24
- package/src/pages/Help.tsx +0 -23
- package/src/pages/HelpAccountAndPayment.tsx +0 -23
- package/src/pages/HelpGuide.tsx +0 -23
- package/src/pages/HelpOrder.tsx +0 -23
- package/src/pages/Home.tsx +0 -36
- package/src/pages/IntroductoryTutorial.tsx +0 -170
- package/src/pages/Login.tsx +0 -47
- package/src/pages/MomentOption.tsx +0 -30
- package/src/pages/MultiCheckout.tsx +0 -31
- package/src/pages/MultiOrdersDetails.tsx +0 -27
- package/src/pages/MyOrders.tsx +0 -40
- package/src/pages/NetworkError.tsx +0 -24
- package/src/pages/NotFound.tsx +0 -22
- package/src/pages/OrderDetails.tsx +0 -25
- package/src/pages/ProductDetails.tsx +0 -55
- package/src/pages/Profile.tsx +0 -36
- package/src/pages/ReviewDriver.tsx +0 -30
- package/src/pages/ReviewOrder.tsx +0 -32
- package/src/pages/ReviewProducts.tsx +0 -30
- package/src/pages/Sessions.tsx +0 -22
- package/src/pages/Signup.tsx +0 -53
- package/src/pages/SpinnerLoader.tsx +0 -10
- package/src/pages/Splash.tsx +0 -21
|
@@ -5,7 +5,7 @@ import { useTheme } from 'styled-components/native';
|
|
|
5
5
|
import { useForm, Controller } from 'react-hook-form';
|
|
6
6
|
import { SignupForm } from '../SignupForm'
|
|
7
7
|
|
|
8
|
-
import { UDForm, UDLoader, UDWrapper, WrapperPhone } from './styles';
|
|
8
|
+
import { UDForm, UDLoader, UDWrapper, WrapperPhone, WrapperBirthdate } from './styles';
|
|
9
9
|
|
|
10
10
|
import { OText, OButton, OInput, OModal, OIcon } from '../shared';
|
|
11
11
|
import { OAlert } from '../../../../../src/components/shared'
|
|
@@ -13,6 +13,8 @@ import { OAlert } from '../../../../../src/components/shared'
|
|
|
13
13
|
import { PhoneInputNumber } from '../PhoneInputNumber';
|
|
14
14
|
import { sortInputFields } from '../../utils';
|
|
15
15
|
import { ListItem } from '../UserProfile/styles';
|
|
16
|
+
import moment from 'moment';
|
|
17
|
+
import { DatePickerUI } from '../DatePicker';
|
|
16
18
|
|
|
17
19
|
export const UserFormDetailsUI = (props: any) => {
|
|
18
20
|
const {
|
|
@@ -81,6 +83,8 @@ export const UserFormDetailsUI = (props: any) => {
|
|
|
81
83
|
const [isValid, setIsValid] = useState(false)
|
|
82
84
|
const [isChanged, setIsChanged] = useState(false)
|
|
83
85
|
const [isModalOpen, setIsModalOpen] = useState(false)
|
|
86
|
+
const [birthdate, setBirthdate] = useState(user?.birthdate ?? null)
|
|
87
|
+
const [showDatePicker, setShowDatePicker] = useState(false)
|
|
84
88
|
const [phoneInputData, setPhoneInputData] = useState({
|
|
85
89
|
error: '',
|
|
86
90
|
phone: {
|
|
@@ -92,6 +96,7 @@ export const UserFormDetailsUI = (props: any) => {
|
|
|
92
96
|
|
|
93
97
|
const isAdmin = user?.level === 0
|
|
94
98
|
const showInputPhoneNumber = (validationFields?.fields?.checkout?.cellphone?.enabled ?? false) || configs?.verification_phone_required?.value === '1'
|
|
99
|
+
const showInputBirthday = validationFields?.fields?.checkout?.birthdate?.enabled ?? false
|
|
95
100
|
|
|
96
101
|
const handleSuccessSignup = (user: any) => {
|
|
97
102
|
login({
|
|
@@ -206,6 +211,13 @@ export const UserFormDetailsUI = (props: any) => {
|
|
|
206
211
|
handleChangeInput(countryCode, true);
|
|
207
212
|
}
|
|
208
213
|
|
|
214
|
+
const _handleChangeDate = (date: any) => {
|
|
215
|
+
setBirthdate(date)
|
|
216
|
+
const _birthdate = moment(date).format('YYYY-MM-DD')
|
|
217
|
+
handleChangeInput({ target: { name: 'birthdate', value: _birthdate } })
|
|
218
|
+
setShowDatePicker(false)
|
|
219
|
+
}
|
|
220
|
+
|
|
209
221
|
const onRemoveAccount = () => {
|
|
210
222
|
setConfirm({
|
|
211
223
|
open: true,
|
|
@@ -268,6 +280,14 @@ export const UserFormDetailsUI = (props: any) => {
|
|
|
268
280
|
}
|
|
269
281
|
}, [phoneInputData, configs?.verification_phone_required?.value, isChanged])
|
|
270
282
|
|
|
283
|
+
useEffect(() => {
|
|
284
|
+
if (!validationFields.loading && birthdate) {
|
|
285
|
+
setValue('birthdate', formState?.result?.result
|
|
286
|
+
? formState?.result?.result?.birthdate
|
|
287
|
+
: formState?.changes?.birthdate ?? (user && user?.birthdate) ?? '')
|
|
288
|
+
}
|
|
289
|
+
}, [validationFields, birthdate])
|
|
290
|
+
|
|
271
291
|
useEffect(() => {
|
|
272
292
|
if (!requiredFields || formState?.changes?.length === 0) return
|
|
273
293
|
const _isValid = requiredFields.every((key: any) => formState?.changes[key])
|
|
@@ -284,83 +304,99 @@ export const UserFormDetailsUI = (props: any) => {
|
|
|
284
304
|
{sortInputFields({
|
|
285
305
|
values: validationFields.fields?.checkout,
|
|
286
306
|
}).map(
|
|
287
|
-
(
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
<
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
{
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
.
|
|
323
|
-
.replace(
|
|
324
|
-
/[&,()%";:ç?<>{}\\[\]\s]/g,
|
|
325
|
-
'',
|
|
326
|
-
),
|
|
327
|
-
);
|
|
328
|
-
field.code !== 'email'
|
|
329
|
-
? handleChangeInput(val)
|
|
330
|
-
: handleChangeInput({
|
|
331
|
-
target: {
|
|
332
|
-
name: 'email',
|
|
333
|
-
value: val.target.value
|
|
307
|
+
(item: any) => {
|
|
308
|
+
const field = item?.validation_field || item
|
|
309
|
+
return (showField &&
|
|
310
|
+
showField(field.code) && ((requiredFields && requiredFields?.includes?.(field.code)) || !requiredFields) && (
|
|
311
|
+
<React.Fragment key={field.id}>
|
|
312
|
+
<Controller
|
|
313
|
+
key={field.id}
|
|
314
|
+
control={control}
|
|
315
|
+
render={() => (
|
|
316
|
+
<>
|
|
317
|
+
<OText size={14} lineHeight={21} color={theme.colors.textNormal} weight={'500'} style={{ textTransform: 'capitalize', alignSelf: 'flex-start' }}>
|
|
318
|
+
{t(field?.code?.toUpperCase(), field?.name)}
|
|
319
|
+
</OText>
|
|
320
|
+
<OInput
|
|
321
|
+
name={field.code}
|
|
322
|
+
placeholder={t(
|
|
323
|
+
field.code.toUpperCase(),
|
|
324
|
+
field?.name,
|
|
325
|
+
)}
|
|
326
|
+
inputStyle={styles.inputStyle}
|
|
327
|
+
style={{ paddingLeft: 0, paddingRight: 0, marginTop: 6, height: 44, minHeight: 44 }}
|
|
328
|
+
autoCapitalize={
|
|
329
|
+
field.code === 'email' ? 'none' : 'sentences'
|
|
330
|
+
}
|
|
331
|
+
isDisabled={false}
|
|
332
|
+
value={
|
|
333
|
+
formState?.changes[field.code] ??
|
|
334
|
+
(user && user[field.code]) ??
|
|
335
|
+
''
|
|
336
|
+
}
|
|
337
|
+
onChange={(val: any) => {
|
|
338
|
+
field.code !== 'email'
|
|
339
|
+
? setValue(field.code, val.target.value)
|
|
340
|
+
: setValue(
|
|
341
|
+
field.code,
|
|
342
|
+
val.target.value
|
|
334
343
|
.toLowerCase()
|
|
335
344
|
.replace(
|
|
336
345
|
/[&,()%";:ç?<>{}\\[\]\s]/g,
|
|
337
346
|
'',
|
|
338
347
|
),
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
348
|
+
);
|
|
349
|
+
field.code !== 'email'
|
|
350
|
+
? handleChangeInput(val)
|
|
351
|
+
: handleChangeInput({
|
|
352
|
+
target: {
|
|
353
|
+
name: 'email',
|
|
354
|
+
value: val.target.value
|
|
355
|
+
.toLowerCase()
|
|
356
|
+
.replace(
|
|
357
|
+
/[&,()%";:ç?<>{}\\[\]\s]/g,
|
|
358
|
+
'',
|
|
359
|
+
),
|
|
360
|
+
},
|
|
361
|
+
});
|
|
362
|
+
}}
|
|
363
|
+
autoCorrect={field.code === 'email' && false}
|
|
364
|
+
type={
|
|
365
|
+
field.code === 'email'
|
|
366
|
+
? 'email-address'
|
|
367
|
+
: 'default'
|
|
368
|
+
}
|
|
369
|
+
returnKeyType="done"
|
|
370
|
+
autoCompleteType={
|
|
371
|
+
field.code === 'email' ? 'email' : 'off'
|
|
372
|
+
}
|
|
373
|
+
/>
|
|
374
|
+
</>
|
|
375
|
+
)}
|
|
376
|
+
name={field.code}
|
|
377
|
+
rules={getInputRules(field)}
|
|
378
|
+
defaultValue={user && user[field.code]}
|
|
379
|
+
/>
|
|
380
|
+
</React.Fragment>
|
|
381
|
+
))
|
|
382
|
+
},
|
|
361
383
|
)}
|
|
362
|
-
|
|
363
|
-
|
|
384
|
+
{showInputBirthday && ((requiredFields && requiredFields?.includes?.('birthdate')) || !requiredFields) && (
|
|
385
|
+
<>
|
|
386
|
+
<WrapperBirthdate>
|
|
387
|
+
<OText size={14} lineHeight={21} color={theme.colors.textNormal} weight={'500'} style={{ textTransform: 'capitalize', alignSelf: 'flex-start' }}>
|
|
388
|
+
{t('BIRTHDATE', 'Birthdate')}
|
|
389
|
+
</OText>
|
|
390
|
+
<TouchableOpacity onPress={() => setShowDatePicker(!showDatePicker)}>
|
|
391
|
+
<OText size={14} lineHeight={21} color={theme.colors.textNormal} weight={'500'} style={{ marginTop: 6 }}>
|
|
392
|
+
{birthdate ? moment(birthdate).format('YYYY-MM-DD') : ''}
|
|
393
|
+
</OText>
|
|
394
|
+
</TouchableOpacity>
|
|
395
|
+
</WrapperBirthdate>
|
|
396
|
+
<DatePickerUI open={showDatePicker} birthdate={birthdate} onConfirm={_handleChangeDate} onCancel={() => setShowDatePicker(false)} />
|
|
397
|
+
</>
|
|
398
|
+
)}
|
|
399
|
+
{!!showInputPhoneNumber && ((requiredFields && requiredFields?.includes?.('cellphone')) || !requiredFields) && (
|
|
364
400
|
<WrapperPhone>
|
|
365
401
|
<OText size={14} lineHeight={21} weight={'500'} color={theme.colors.textNormal}>{t('PHONE', 'Phone')}</OText>
|
|
366
402
|
<PhoneInputNumber
|
|
@@ -448,8 +484,8 @@ export const UserFormDetailsUI = (props: any) => {
|
|
|
448
484
|
? t('UPDATING', 'Updating...')
|
|
449
485
|
: t('UPDATE', 'Update')
|
|
450
486
|
}
|
|
451
|
-
bgColor={theme.colors.
|
|
452
|
-
textStyle={{ color: theme.colors.
|
|
487
|
+
bgColor={theme.colors.primary}
|
|
488
|
+
textStyle={{ color: theme.colors.white, fontSize: 14 }}
|
|
453
489
|
borderColor={theme.colors.primary}
|
|
454
490
|
isDisabled={formState.loading}
|
|
455
491
|
imgRightSrc={null}
|
|
@@ -468,16 +504,29 @@ export const UserFormDetailsUI = (props: any) => {
|
|
|
468
504
|
? t('SIGN_UP_AND_PLACE_ORDER', 'Sign up and place order')
|
|
469
505
|
: t('CONTINUE', 'Continue'))
|
|
470
506
|
}
|
|
471
|
-
bgColor={theme.colors.
|
|
472
|
-
textStyle={{
|
|
507
|
+
bgColor={theme.colors.primary}
|
|
508
|
+
textStyle={{
|
|
509
|
+
color: !user?.guest_id && (formState.loading || !isValid) ? theme.colors.primary : theme.colors.white,
|
|
510
|
+
fontSize: 14
|
|
511
|
+
}}
|
|
473
512
|
borderColor={theme.colors.primary}
|
|
474
513
|
isDisabled={!user?.guest_id && (formState.loading || !isValid)}
|
|
475
514
|
imgRightSrc={null}
|
|
476
|
-
style={{
|
|
477
|
-
|
|
515
|
+
style={{
|
|
516
|
+
borderRadius: 7.6,
|
|
517
|
+
shadowOpacity: 0,
|
|
518
|
+
width: '100%',
|
|
519
|
+
borderWidth: 1,
|
|
520
|
+
marginTop: 20,
|
|
521
|
+
marginBottom: 20,
|
|
522
|
+
backgroundColor: !user?.guest_id && (formState.loading || !isValid) ? theme.colors.lightGray : theme.colors.primary,
|
|
523
|
+
borderColor: !user?.guest_id && (formState.loading || !isValid) ? theme.colors.white : theme.colors.primary,
|
|
524
|
+
opacity: !user?.guest_id && (formState.loading || !isValid) ? 0.3 : 1,
|
|
525
|
+
}}
|
|
526
|
+
onClick={handleSubmit(onSubmit)}
|
|
478
527
|
/>
|
|
479
528
|
)}
|
|
480
|
-
{isCheckout && !!user?.guest_id && (
|
|
529
|
+
{isCheckout && !!user?.guest_id && !requiredFields && (
|
|
481
530
|
<TouchableOpacity style={{ marginTop: 10 }} onPress={() => handlePlaceOrderAsGuest()}>
|
|
482
531
|
<OText color={theme.colors.primary} style={{ textAlign: 'center' }}>{t('PLACE_ORDER_AS_GUEST', 'Place order as guest')}</OText>
|
|
483
532
|
</TouchableOpacity>
|
|
@@ -20,7 +20,7 @@ export const UDLoader = styled.View`
|
|
|
20
20
|
width: 100%;
|
|
21
21
|
justify-content: center;
|
|
22
22
|
height: auto;
|
|
23
|
-
display:
|
|
23
|
+
display: flex;
|
|
24
24
|
flex-wrap: wrap;
|
|
25
25
|
padding: 0;
|
|
26
26
|
margin-top: 0px;
|
|
@@ -32,3 +32,10 @@ export const WrapperPhone = styled.View`
|
|
|
32
32
|
border-bottom-width: 1px;
|
|
33
33
|
border-bottom-color: ${(props: any) => props.theme.colors.border};
|
|
34
34
|
`
|
|
35
|
+
|
|
36
|
+
export const WrapperBirthdate = styled.View`
|
|
37
|
+
margin-bottom: 25px;
|
|
38
|
+
width: 100%;
|
|
39
|
+
border-bottom-width: 1px;
|
|
40
|
+
border-bottom-color: ${(props: any) => props.theme.colors.border};
|
|
41
|
+
`
|
|
@@ -20,7 +20,7 @@ import MaterialIcons from 'react-native-vector-icons/MaterialIcons'
|
|
|
20
20
|
import FontAwesome from 'react-native-vector-icons/FontAwesome'
|
|
21
21
|
import FastImage from 'react-native-fast-image'
|
|
22
22
|
import { OAlert } from '../../../../../src/components/shared'
|
|
23
|
-
|
|
23
|
+
import { WebsocketStatus } from '../WebsocketStatus'
|
|
24
24
|
import {
|
|
25
25
|
OIcon,
|
|
26
26
|
OText,
|
|
@@ -101,7 +101,7 @@ const ProfileListUI = (props: ProfileParams) => {
|
|
|
101
101
|
marginEnd: 14
|
|
102
102
|
},
|
|
103
103
|
pagePadding: {
|
|
104
|
-
paddingHorizontal:
|
|
104
|
+
paddingHorizontal: 20
|
|
105
105
|
},
|
|
106
106
|
messageIconStyle: {
|
|
107
107
|
fontSize: 18,
|
|
@@ -161,7 +161,7 @@ const ProfileListUI = (props: ProfileParams) => {
|
|
|
161
161
|
}, [removeAccountState])
|
|
162
162
|
|
|
163
163
|
return (
|
|
164
|
-
<View style={{ flex: 1, height:
|
|
164
|
+
<View style={{ flex: 1, height: '100%', paddingTop: 20 }}>
|
|
165
165
|
<CenterView style={styles.pagePadding}>
|
|
166
166
|
{user?.photo && !hideProfileImage && (
|
|
167
167
|
<View style={styles.photo}>
|
|
@@ -261,7 +261,7 @@ const ProfileListUI = (props: ProfileParams) => {
|
|
|
261
261
|
)}
|
|
262
262
|
</Actions>
|
|
263
263
|
|
|
264
|
-
<Actions>
|
|
264
|
+
<Actions style={{ paddingTop: height * .02 }}>
|
|
265
265
|
{!showLanguages && (
|
|
266
266
|
<LanguageSelector iconColor={theme.colors.textNormal} pickerStyle={langPickerStyle} />
|
|
267
267
|
)}
|
|
@@ -270,6 +270,7 @@ const ProfileListUI = (props: ProfileParams) => {
|
|
|
270
270
|
<View style={{ height: 17 }} />
|
|
271
271
|
</Actions>
|
|
272
272
|
</ListWrap>
|
|
273
|
+
<WebsocketStatus />
|
|
273
274
|
<OAlert
|
|
274
275
|
open={confirm.open}
|
|
275
276
|
title={confirm.title}
|
|
@@ -287,44 +287,43 @@ const ProfileUI = (props: ProfileParams) => {
|
|
|
287
287
|
onActionLeft={() => navigation.goBack()}
|
|
288
288
|
showCall={false}
|
|
289
289
|
btnStyle={{ paddingLeft: 0 }}
|
|
290
|
+
buttonProps={{
|
|
291
|
+
bgColor: theme.colors.white,
|
|
292
|
+
borderColor: theme.colors.white,
|
|
293
|
+
textStyle: { color: theme.colors.btnFont }
|
|
294
|
+
}}
|
|
290
295
|
/>
|
|
291
|
-
<
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
icon={theme.images.general.camera}
|
|
313
|
-
borderColor={theme.colors.clear}
|
|
314
|
-
iconStyle={{ width: 20, height: 20 }}
|
|
315
|
-
style={{ maxWidth: 40, position: 'absolute', alignSelf: 'center', backgroundColor: '#000', opacity: 0.5 }}
|
|
316
|
-
onClick={() => handleImagePicker()}
|
|
317
|
-
/>
|
|
318
|
-
</CenterView>
|
|
319
|
-
<View style={{ height: 8, backgroundColor: theme.colors.backgroundGray100, marginVertical: 32, zIndex: 10 }} />
|
|
320
|
-
<Spinner visible={formState?.loading || verifyPhoneState?.loading} />
|
|
321
|
-
<UserFormDetailsUI
|
|
322
|
-
{...props}
|
|
323
|
-
isProfile
|
|
324
|
-
isEdit
|
|
325
|
-
setWillVerifyOtpState={setWillVerifyOtpState}
|
|
296
|
+
<CenterView>
|
|
297
|
+
<View style={styles.photo}>
|
|
298
|
+
{user?.photo ? (
|
|
299
|
+
<FastImage
|
|
300
|
+
style={{ height: 80, width: 80, borderRadius: 8 }}
|
|
301
|
+
source={{
|
|
302
|
+
uri: user?.photo,
|
|
303
|
+
priority: FastImage.priority.normal,
|
|
304
|
+
}}
|
|
305
|
+
resizeMode={FastImage.resizeMode.cover}
|
|
306
|
+
/>
|
|
307
|
+
) : (
|
|
308
|
+
<Ionicons name='person-outline' size={50} />
|
|
309
|
+
)}
|
|
310
|
+
</View>
|
|
311
|
+
<OIconButton
|
|
312
|
+
icon={theme.images.general.camera}
|
|
313
|
+
borderColor={theme.colors.clear}
|
|
314
|
+
iconStyle={{ width: 20, height: 20 }}
|
|
315
|
+
style={{ maxWidth: 40, position: 'absolute', alignSelf: 'center', backgroundColor: '#000', opacity: 0.5 }}
|
|
316
|
+
onClick={() => handleImagePicker()}
|
|
326
317
|
/>
|
|
327
|
-
</
|
|
318
|
+
</CenterView>
|
|
319
|
+
<View style={{ height: 8, backgroundColor: theme.colors.backgroundGray100, marginVertical: 32, zIndex: 10 }} />
|
|
320
|
+
<Spinner visible={formState?.loading || verifyPhoneState?.loading} />
|
|
321
|
+
<UserFormDetailsUI
|
|
322
|
+
{...props}
|
|
323
|
+
isProfile
|
|
324
|
+
isEdit
|
|
325
|
+
setWillVerifyOtpState={setWillVerifyOtpState}
|
|
326
|
+
/>
|
|
328
327
|
</Container>
|
|
329
328
|
<OModal
|
|
330
329
|
open={isModalVisible}
|
|
@@ -195,38 +195,39 @@ const UserVerificationUI = (props: any) => {
|
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
useEffect(() => {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
198
|
+
if (verificationState.phone) {
|
|
199
|
+
let _timer = TIME_COUNTDOWN - 1;
|
|
200
|
+
let minutes = 0;
|
|
201
|
+
let seconds = 0;
|
|
202
|
+
const interval = setInterval(() => {
|
|
203
|
+
minutes = _timer / 60;
|
|
204
|
+
seconds = _timer % 60;
|
|
205
|
+
|
|
206
|
+
minutes = minutes < 10 ? 0 + minutes : minutes;
|
|
207
|
+
seconds = seconds < 10 ? 0 + seconds : seconds;
|
|
208
|
+
|
|
209
|
+
const formatMinutes = parseInt(minutes.toString()) < 10
|
|
210
|
+
? `0${parseInt(minutes.toString())}`
|
|
211
|
+
: parseInt(minutes.toString());
|
|
212
|
+
|
|
213
|
+
const formatseconds = parseInt(seconds.toString()) < 10
|
|
214
|
+
? `0${parseInt(seconds.toString())}`
|
|
215
|
+
: parseInt(seconds.toString());
|
|
216
|
+
|
|
217
|
+
setTimer(`${formatMinutes}:${formatseconds}`);
|
|
218
|
+
|
|
219
|
+
if (--_timer < 0) {
|
|
220
|
+
clearInterval(interval);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
if (timer === `${TIME_COUNTDOWN / 60}:00` && isSendCodeAgain) {
|
|
224
|
+
setIsSendCodeAgain(false)
|
|
225
|
+
clearInterval(interval);
|
|
226
|
+
}
|
|
227
|
+
}, 1000);
|
|
228
|
+
return () => clearInterval(interval)
|
|
229
|
+
}
|
|
230
|
+
}, [isSendCodeAgain, verificationState.phone])
|
|
230
231
|
|
|
231
232
|
useEffect(() => {
|
|
232
233
|
if (otpState?.length === CODE_LENGTH) {
|
|
@@ -292,7 +293,7 @@ const UserVerificationUI = (props: any) => {
|
|
|
292
293
|
|
|
293
294
|
useEffect(() => {
|
|
294
295
|
setupUserPhoneNumber()
|
|
295
|
-
}, [user])
|
|
296
|
+
}, [user?.cellphone, user?.country_phone_code])
|
|
296
297
|
|
|
297
298
|
return (
|
|
298
299
|
<SafeAreaView style={{ flex: 1 }}>
|
|
@@ -401,6 +402,7 @@ const UserVerificationUI = (props: any) => {
|
|
|
401
402
|
textStyle={{ color: theme.colors.textNormal, fontSize: 12, padding: 0 }}
|
|
402
403
|
noDropIcon
|
|
403
404
|
isDisabled
|
|
405
|
+
updateStateWithSubmit
|
|
404
406
|
/>
|
|
405
407
|
</InputWrapper>
|
|
406
408
|
</>
|
|
@@ -460,28 +462,31 @@ const UserVerificationUI = (props: any) => {
|
|
|
460
462
|
)}
|
|
461
463
|
|
|
462
464
|
</Container>
|
|
463
|
-
|
|
464
|
-
<
|
|
465
|
-
<
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
465
|
+
{!!phoneState?.cellphone && (
|
|
466
|
+
<ButtonsActions>
|
|
467
|
+
<View style={{ width: '100%' }}>
|
|
468
|
+
<OButton
|
|
469
|
+
onClick={(verificationState.email || verificationState.phone)
|
|
470
|
+
? () => setVerificationState({ email: false, phone: false })
|
|
471
|
+
: () => handleSendOtp(isPhoneVerifyRequired && !isEmailVerifyRequired ? 'phone' : '')
|
|
472
|
+
}
|
|
473
|
+
text={(verificationState.email || verificationState.phone) ? t('CANCEL', 'Cancel') : t('SEND_CODE', 'Send code')}
|
|
474
|
+
bgColor={(verificationState.email || verificationState.phone) ? theme.colors.secundary : theme.colors.primary}
|
|
475
|
+
borderColor={(verificationState.email || verificationState.phone) ? theme.colors.secundary : theme.colors.primary}
|
|
476
|
+
textStyle={{ color: (verificationState.email || verificationState.phone) ? 'black' : 'white' }}
|
|
477
|
+
imgRightSrc={null}
|
|
478
|
+
isLoading={verifyEmailState?.loadingSendCode || verifyEmailState?.loadingCheckCode || verifyPhoneState?.loadingSendCode || verifyPhoneState?.loadingCheckCode}
|
|
479
|
+
style={(verificationState.email || verificationState.phone) ? style.btnStyle : { borderRadius: 7.6 }}
|
|
480
|
+
/>
|
|
481
|
+
</View>
|
|
482
|
+
</ButtonsActions>
|
|
483
|
+
)}
|
|
480
484
|
<View style={{ paddingHorizontal: 20, paddingBottom: 80 }}>
|
|
481
485
|
<UserDetails
|
|
482
486
|
user={user}
|
|
483
487
|
isEdit
|
|
484
488
|
isVerifiedPhone
|
|
489
|
+
dontToggleEditMode
|
|
485
490
|
/>
|
|
486
491
|
</View>
|
|
487
492
|
</ScrollView>
|
|
@@ -49,12 +49,12 @@ export const WalletTransactionItem = (props: any) => {
|
|
|
49
49
|
.replace(':order_id', item?.event?.order_id ? item?.event?.order_id + ' ' : '')}
|
|
50
50
|
</OText>
|
|
51
51
|
</MessageBlock>
|
|
52
|
-
{
|
|
52
|
+
{!!item?.description && (
|
|
53
53
|
<DescriptionBlock>
|
|
54
54
|
<OText>{item?.description}</OText>
|
|
55
55
|
</DescriptionBlock>
|
|
56
56
|
)}
|
|
57
|
-
{!!item?.code && (
|
|
57
|
+
{/* {!!item?.code && (
|
|
58
58
|
<DescriptionBlock>
|
|
59
59
|
<OText weight={'bold'}>
|
|
60
60
|
{t('CODE', 'Code')}
|