ordering-ui-react-native 0.17.97-release → 0.17.98-release

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.17.97-release",
3
+ "version": "0.17.98-release",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -147,7 +147,7 @@ const MultiCheckoutUI = (props: any) => {
147
147
  const [openModal, setOpenModal] = useState({ login: false, signup: false, isGuest: false })
148
148
  const [methodPaySupported, setMethodPaySupported] = useState({ enabled: false, message: null, loading: true })
149
149
  const methodsPay = ['global_google_pay', 'global_apple_pay']
150
- const isDisablePlaceOrderButton = cartGroup?.loading || (!(paymethodSelected?.paymethod_id || paymethodSelected?.wallet_id) && cartGroup?.result?.balance > 0) ||
150
+ const isDisablePlaceOrderButton = cartGroup?.loading || placing || (!(paymethodSelected?.paymethod_id || paymethodSelected?.wallet_id) && cartGroup?.result?.balance > 0) ||
151
151
  (paymethodSelected?.paymethod?.gateway === 'stripe' && !paymethodSelected?.paymethod_data) ||
152
152
  walletCarts.length > 0
153
153
  || (methodsPay.includes(paymethodSelected?.gateway) && (!methodPaySupported.enabled || methodPaySupported.loading)) || openCarts?.length === 0
@@ -321,6 +321,8 @@ export const ProductOptionsUI = (props: any) => {
321
321
  if (guestToken) handleCreateGuestUser({ guest_token: guestToken })
322
322
  }
323
323
 
324
+ let _optionLayout: any = {}
325
+
324
326
  const handleOnLayout = (event: any, optionId: any) => {
325
327
  const _optionLayout = { ...optionLayout }
326
328
  const optionKey = 'id:' + optionId
@@ -953,7 +955,7 @@ export const ProductOptionsUI = (props: any) => {
953
955
  <ProductComment>
954
956
  <SectionTitle>
955
957
  <OText size={16} weight={'600'} lineHeight={24}>
956
- {t('SPECIAL_COMMENT', 'Special comment')}
958
+ {t('COMMENTS', 'Special comment')}
957
959
  </OText>
958
960
  </SectionTitle>
959
961
  <OInput