ordering-ui-react-native 0.16.8 → 0.16.9
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
|
@@ -212,7 +212,7 @@ const BusinessProductsListUI = (props: BusinessProductsListParams) => {
|
|
|
212
212
|
{category?.description?.length > 80 && (
|
|
213
213
|
<OButton
|
|
214
214
|
style={{ height: 15, paddingRight: 0, paddingLeft: 0, borderWidth: 0 }}
|
|
215
|
-
text={t('
|
|
215
|
+
text={t('VIEW_MORE', 'View more')}
|
|
216
216
|
parentStyle={{ padding: 0 }}
|
|
217
217
|
onClick={() => setOpenDescription(category)}
|
|
218
218
|
bgColor='transparent'
|
|
@@ -327,7 +327,7 @@ const BusinessProductsListUI = (props: BusinessProductsListParams) => {
|
|
|
327
327
|
style={{ borderRadius: 7.6 }}
|
|
328
328
|
/>
|
|
329
329
|
)}
|
|
330
|
-
<OText mBottom={
|
|
330
|
+
<OText mBottom={60}>{openDescription?.description}</OText>
|
|
331
331
|
</ScrollView>
|
|
332
332
|
</OModal>
|
|
333
333
|
</ProductsContainer>
|
|
@@ -99,7 +99,10 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
99
99
|
const theme = useTheme();
|
|
100
100
|
const isOtpEmail = loginTab === 'otp' && otpType === 'email'
|
|
101
101
|
const isOtpCellphone = loginTab === 'otp' && otpType === 'cellphone'
|
|
102
|
+
|
|
102
103
|
const googleLoginEnabled = configs?.google_login_enabled?.value === '1' || !configs?.google_login_enabled?.enabled
|
|
104
|
+
const facebookLoginEnabled = configs?.facebook_login_enabled?.value === '1' || !configs?.facebook_login_enabled?.enabled
|
|
105
|
+
const appleLoginEnabled = configs?.apple_login_enabled?.value === '1' || !configs?.apple_login_enabled?.enabled
|
|
103
106
|
|
|
104
107
|
const loginStyle = StyleSheet.create({
|
|
105
108
|
btnOutline: {
|
|
@@ -704,7 +707,8 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
704
707
|
<ButtonsWrapper>
|
|
705
708
|
<SocialButtons>
|
|
706
709
|
{(configs?.facebook_login?.value === 'true' || configs?.facebook_login?.value === '1') &&
|
|
707
|
-
configs?.facebook_id?.value &&
|
|
710
|
+
configs?.facebook_id?.value &&
|
|
711
|
+
facebookLoginEnabled && (
|
|
708
712
|
<FacebookLogin
|
|
709
713
|
notificationState={notificationState}
|
|
710
714
|
handleErrors={(err: any) => showToast(ToastType.Error, err)}
|
|
@@ -721,7 +725,7 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
721
725
|
handleSuccessGoogleLogin={handleSuccessFacebook}
|
|
722
726
|
/>
|
|
723
727
|
)}
|
|
724
|
-
{(configs?.apple_login_client_id?.value !== '' && configs?.google_login_client_id?.value !== null) && (
|
|
728
|
+
{(configs?.apple_login_client_id?.value !== '' && configs?.google_login_client_id?.value !== null) && appleLoginEnabled && (
|
|
725
729
|
<AppleLogin
|
|
726
730
|
notificationState={notificationState}
|
|
727
731
|
handleErrors={(err: any) => showToast(ToastType.Error, err)}
|
|
@@ -136,6 +136,8 @@ const SignupFormUI = (props: SignupParams) => {
|
|
|
136
136
|
|
|
137
137
|
const showInputPhoneNumber = (validationFields?.fields?.checkout?.cellphone?.enabled ?? false) || configs?.verification_phone_required?.value === '1'
|
|
138
138
|
const googleLoginEnabled = configs?.google_login_enabled?.value === '1' || !configs?.google_login_enabled?.enabled
|
|
139
|
+
const facebookLoginEnabled = configs?.facebook_login_enabled?.value === '1' || !configs?.facebook_login_enabled?.enabled
|
|
140
|
+
const appleLoginEnabled = configs?.apple_login_enabled?.value === '1' || !configs?.apple_login_enabled?.enabled
|
|
139
141
|
|
|
140
142
|
const handleRefs = (ref: any, code: string) => {
|
|
141
143
|
switch (code) {
|
|
@@ -780,7 +782,9 @@ const SignupFormUI = (props: SignupParams) => {
|
|
|
780
782
|
<ButtonsWrapper>
|
|
781
783
|
<SocialButtons>
|
|
782
784
|
{(configs?.facebook_login?.value === 'true' || configs?.facebook_login?.value === '1') &&
|
|
783
|
-
configs?.facebook_id?.value &&
|
|
785
|
+
configs?.facebook_id?.value &&
|
|
786
|
+
facebookLoginEnabled &&
|
|
787
|
+
(
|
|
784
788
|
<FacebookLogin
|
|
785
789
|
notificationState={notificationState}
|
|
786
790
|
handleErrors={(err: any) => showToast(ToastType.Error, err)}
|
|
@@ -797,7 +801,7 @@ const SignupFormUI = (props: SignupParams) => {
|
|
|
797
801
|
handleSuccessGoogleLogin={handleSuccessFacebook}
|
|
798
802
|
/>
|
|
799
803
|
)}
|
|
800
|
-
{(configs?.apple_login_client_id?.value !== '' && configs?.apple_login_client_id?.value !== null) && (
|
|
804
|
+
{(configs?.apple_login_client_id?.value !== '' && configs?.apple_login_client_id?.value !== null) && appleLoginEnabled && (
|
|
801
805
|
<AppleLogin
|
|
802
806
|
notificationState={notificationState}
|
|
803
807
|
handleErrors={(err: any) => showToast(ToastType.Error, err)}
|