ordering-ui-react-native 0.16.80 → 0.16.82

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.16.80",
3
+ "version": "0.16.82",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -33,7 +33,8 @@ const LoginFormUI = (props: LoginParams) => {
33
33
  formState,
34
34
  handleButtonLoginClick,
35
35
  useRootPoint,
36
- handleReCaptcha
36
+ handleReCaptcha,
37
+ enableReCaptcha
37
38
  } = props;
38
39
 
39
40
  const theme = useTheme()
@@ -167,7 +168,7 @@ const LoginFormUI = (props: LoginParams) => {
167
168
  }, [errors]);
168
169
 
169
170
  useEffect(() => {
170
- if (configs && Object.keys(configs).length > 0) {
171
+ if (configs && Object.keys(configs).length > 0 && enableReCaptcha) {
171
172
  if (configs?.security_recaptcha_type?.value === 'v3' &&
172
173
  configs?.security_recaptcha_score_v3?.value > 0 &&
173
174
  configs?.security_recaptcha_site_key_v3?.value
@@ -187,7 +188,7 @@ const LoginFormUI = (props: LoginParams) => {
187
188
  })
188
189
  }
189
190
  }
190
- }, [configs])
191
+ }, [configs, enableReCaptcha])
191
192
 
192
193
  const logo = (
193
194
  <LogoWrapper>
@@ -82,6 +82,7 @@ export interface LoginParams {
82
82
  handleSendVerifyCode?: any;
83
83
  handleCheckPhoneCode?: any;
84
84
  useRootPoint?: any;
85
+ enableReCaptcha?: boolean;
85
86
  handleReCaptcha?: (vlaue: any) => void;
86
87
  }
87
88
 
@@ -103,7 +103,10 @@ export const BusinessBasicInformation = (
103
103
  height: 12,
104
104
  width: 12,
105
105
  margin: 0,
106
- padding: 0
106
+ padding: 0,
107
+ display: 'flex',
108
+ justifyContent: 'center',
109
+ alignItems: 'center'
107
110
  },
108
111
  headerChewStyle: {
109
112
  paddingHorizontal: 30,
@@ -221,7 +224,8 @@ export const BusinessBasicInformation = (
221
224
  <View style={styles.tiktokIcon}>
222
225
  <OIcon
223
226
  src={theme.images.general.tiktok}
224
- style={{ width: '100%', height: '100%' }}
227
+ style={{ width: 10, height: 12 }}
228
+ cover
225
229
  />
226
230
  </View>
227
231
  </Pressable>
@@ -329,10 +329,10 @@ const CheckoutUI = (props: any) => {
329
329
  !businessDetails?.error &&
330
330
  (
331
331
  <Placeholder Animation={Fade}>
332
- <PlaceholderLine height={20} width={70} />
333
- <PlaceholderLine height={10} width={60} />
334
- <PlaceholderLine height={10} width={60} />
335
- <PlaceholderLine height={10} width={80} style={{ marginBottom: 20 }} />
332
+ <PlaceholderLine height={20} />
333
+ <PlaceholderLine height={12} />
334
+ <PlaceholderLine height={12} />
335
+ <PlaceholderLine height={12} style={{ marginBottom: 20 }} />
336
336
  </Placeholder>
337
337
  )}
338
338
  {
@@ -378,10 +378,10 @@ const CheckoutUI = (props: any) => {
378
378
  <ChUserDetails>
379
379
  {cartState.loading ? (
380
380
  <Placeholder Animation={Fade}>
381
- <PlaceholderLine height={20} width={70} />
382
- <PlaceholderLine height={10} width={60} />
383
- <PlaceholderLine height={10} width={60} />
384
- <PlaceholderLine height={10} width={80} style={{ marginBottom: 20 }} />
381
+ <PlaceholderLine height={20} />
382
+ <PlaceholderLine height={12} />
383
+ <PlaceholderLine height={12} />
384
+ <PlaceholderLine height={12} style={{ marginBottom: 20 }} />
385
385
  </Placeholder>
386
386
  ) : (
387
387
  <UserDetails
@@ -405,8 +405,8 @@ const CheckoutUI = (props: any) => {
405
405
  {cartState.loading || deliveryOptionSelected === undefined ? (
406
406
  <View style={{ height: 110 }}>
407
407
  <Placeholder Animation={Fade}>
408
- <PlaceholderLine height={20} width={70} />
409
- <PlaceholderLine height={40} width={100} />
408
+ <PlaceholderLine height={20} />
409
+ <PlaceholderLine height={40} />
410
410
  </Placeholder>
411
411
  </View>
412
412
  ) : (