ordering-ui-react-native 0.22.3 → 0.22.4

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.22.03",
3
+ "version": "0.22.04",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -152,7 +152,7 @@ export const StripeMethodForm = (props: StripeMethodFormParams) => {
152
152
 
153
153
  const { error, paymentMethod } = await presentApplePay({
154
154
  cartItems: [{
155
- label: t('CART', 'Cart'),
155
+ label: t('CART_APPLE_PAY_LABEL', 'Cart'),
156
156
  amount: cartTotal?.toString?.() ?? cart?.balance?.toString() ?? cart?.total?.toString?.(),
157
157
  paymentType: 'Immediate'
158
158
  }],
@@ -368,7 +368,7 @@ const PaymentOptionsUI = (props: any) => {
368
368
  methodPaySupported={methodPaySupported}
369
369
  placeByMethodPay={placeByMethodPay}
370
370
  setPlaceByMethodPay={setPlaceByMethodPay}
371
- publicKeyAddCard={isOpenMethod?.paymethod?.credentials?.stripe?.publishable}
371
+ publicKeyAddCard={isOpenMethod?.paymethod?.credentials?.stripe?.publishable || isOpenMethod?.paymethod?.credentials?.publishable}
372
372
  />
373
373
  )}
374
374
 
@@ -413,7 +413,7 @@ const PaymentOptionsUI = (props: any) => {
413
413
  merchantId={merchantId}
414
414
  urlscheme={urlscheme}
415
415
  androidAppId={androidAppId}
416
- publicKeyAddCard={isOpenMethod?.paymethod?.credentials?.stripe?.publishable}
416
+ publicKeyAddCard={isOpenMethod?.paymethod?.credentials?.stripe?.publishable || isOpenMethod?.paymethod?.credentials?.publishable}
417
417
  />
418
418
  </KeyboardAvoidingView>
419
419
  </OModal>
@@ -438,7 +438,7 @@ const PaymentOptionsUI = (props: any) => {
438
438
  onNavigationRedirect={onNavigationRedirect}
439
439
  onCancel={() => handlePaymethodClick(null)}
440
440
  publicKey={isOpenMethod?.paymethod?.credentials.publishable}
441
- publicKeyAddCard={isOpenMethod?.paymethod?.credentials?.stripe?.publishable}
441
+ publicKeyAddCard={isOpenMethod?.paymethod?.credentials?.stripe?.publishable || isOpenMethod?.paymethod?.credentials?.publishable}
442
442
  />
443
443
  </View>
444
444
  )}
@@ -463,7 +463,7 @@ const PaymentOptionsUI = (props: any) => {
463
463
  accountId={isOpenMethod?.paymethod?.credentials?.user}
464
464
  onSelectCard={handlePaymethodDataChange}
465
465
  onCancel={() => setAddCardOpen({ ...addCardOpen, stripeConnect: false })}
466
- publicKeyAddCard={isOpenMethod?.paymethod?.credentials?.stripe?.publishable}
466
+ publicKeyAddCard={isOpenMethod?.paymethod?.credentials?.stripe?.publishable || isOpenMethod?.paymethod?.credentials?.publishable}
467
467
  />
468
468
  </KeyboardAvoidingView>
469
469
  </OModal>
@@ -491,7 +491,7 @@ const PaymentOptionsUI = (props: any) => {
491
491
  requirements={props.clientSecret}
492
492
  onSelectCard={handlePaymethodDataChange}
493
493
  onCancel={() => setAddCardOpen({ ...addCardOpen, stripe: false })}
494
- publicKeyAddCard={isOpenMethod?.paymethod?.credentials?.stripe?.publishable}
494
+ publicKeyAddCard={isOpenMethod?.paymethod?.credentials?.stripe?.publishable || isOpenMethod?.paymethod?.credentials?.publishable}
495
495
  />
496
496
  </KeyboardAvoidingView>
497
497
  </OModal>
@@ -280,7 +280,7 @@ export const ProductItemAccordion = (props: ProductItemAccordionParams) => {
280
280
  )}
281
281
  </Accordion>
282
282
 
283
- <View style={{ display: isActive ? 'flex' : 'none', paddingStart: 40 }}>
283
+ <View style={{ display: isActive ? 'flex' : 'none', paddingStart: isFromCheckout ? 100 : 40, marginTop: isFromCheckout ? -80 : -30 }}>
284
284
  <Animated.View>
285
285
  <AccordionContent>
286
286
  {productInfo().ingredients.length > 0 && productInfo().ingredients.some((ingredient: any) => !ingredient.selected) && (
@@ -54,4 +54,6 @@ export const ProductSubOption = styled.View`
54
54
  margin-left: 0px;
55
55
  `
56
56
 
57
- export const ProductComment = styled.View``
57
+ export const ProductComment = styled.View`
58
+ margin-left: 20px;
59
+ `