ordering-ui-react-native 0.18.15 → 0.18.16
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 +1 -1
- package/themes/business/src/components/LoginForm/index.tsx +3 -0
- package/themes/original/src/components/PaymentOptions/index.tsx +1 -0
- package/themes/original/src/components/PhoneInputNumber/index.tsx +1 -1
- package/themes/original/src/components/StripeCardsList/index.tsx +8 -1
package/package.json
CHANGED
|
@@ -476,6 +476,8 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
476
476
|
borderRadius: 7.6,
|
|
477
477
|
borderColor: theme.colors.inputSignup,
|
|
478
478
|
backgroundColor: theme.colors.transparent,
|
|
479
|
+
minHeight: 50,
|
|
480
|
+
maxHeight : 50
|
|
479
481
|
},
|
|
480
482
|
btn: {
|
|
481
483
|
borderRadius: 7.6,
|
|
@@ -941,3 +943,4 @@ export const LoginForm = (props: any) => {
|
|
|
941
943
|
|
|
942
944
|
return <LoginFormController {...loginProps} />;
|
|
943
945
|
};
|
|
946
|
+
|
|
@@ -292,6 +292,7 @@ const PaymentOptionsUI = (props: any) => {
|
|
|
292
292
|
onSelectCard={handlePaymethodDataChange}
|
|
293
293
|
onNavigationRedirect={onNavigationRedirect}
|
|
294
294
|
onCancel={() => handlePaymethodClick(null)}
|
|
295
|
+
setAddCardOpen={() => setAddCardOpen({ ...addCardOpen, stripe: true })}
|
|
295
296
|
/>
|
|
296
297
|
</View>
|
|
297
298
|
)}
|
|
@@ -113,7 +113,7 @@ export const PhoneInputNumber = (props: PhoneInputParams) => {
|
|
|
113
113
|
!isNaN(defaultCode)
|
|
114
114
|
? transformCountryCode(defaultCode)
|
|
115
115
|
: defaultCode
|
|
116
|
-
: configs?.default_country_code?.value}
|
|
116
|
+
: configs?.default_country_code?.value?.toUpperCase()}
|
|
117
117
|
onChangeFormattedText={(text: string) => handleChangeNumber(text)}
|
|
118
118
|
withDarkTheme
|
|
119
119
|
onChangeCountry={(country) => changeCountry?.(country)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useEffect } from 'react';
|
|
2
2
|
import { View, StyleSheet, ScrollView } from 'react-native';
|
|
3
3
|
import {
|
|
4
4
|
PaymentOptionStripe,
|
|
@@ -25,6 +25,7 @@ const StripeCardsListUI = (props: any) => {
|
|
|
25
25
|
cardSelected,
|
|
26
26
|
cardsList,
|
|
27
27
|
handleCardClick,
|
|
28
|
+
setAddCardOpen
|
|
28
29
|
} = props;
|
|
29
30
|
|
|
30
31
|
const theme = useTheme();
|
|
@@ -37,6 +38,12 @@ const StripeCardsListUI = (props: any) => {
|
|
|
37
38
|
onSelectCard(card);
|
|
38
39
|
}
|
|
39
40
|
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
if (!cardsList?.loading && cardsList?.cards?.length === 0) {
|
|
43
|
+
setAddCardOpen(true)
|
|
44
|
+
}
|
|
45
|
+
}, [cardsList?.loading])
|
|
46
|
+
|
|
40
47
|
return (
|
|
41
48
|
<>
|
|
42
49
|
{token && !cardsList.loading && cardsList.cards && cardsList.cards.length === 0 && (
|