@rozoai/intent-pay 0.0.18-beta.2 → 0.0.18-beta.3
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/build/package.json.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { useEffect } from 'react';
|
|
3
2
|
import { ROUTES } from '../../../constants/routes.js';
|
|
4
3
|
import { usePayContext } from '../../../hooks/usePayContext.js';
|
|
5
4
|
import WalletIcon from '../../../assets/wallet.js';
|
|
6
5
|
import { PageContent, ModalContent, ModalH1, ModalBody, Disclaimer } from '../../Common/Modal/styles.js';
|
|
7
6
|
import { InfoBox, InfoBoxButtons, LearnMoreContainer, LearnMoreButton } from './styles.js';
|
|
8
|
-
import { RozoPayOrderMode } from '@rozoai/intent-common';
|
|
9
7
|
import { useRozoPay } from '../../../hooks/useDaimoPay.js';
|
|
10
8
|
import useIsMobile from '../../../hooks/useIsMobile.js';
|
|
11
9
|
import useLocales from '../../../hooks/useLocales.js';
|
|
@@ -17,15 +15,20 @@ const Wallets = () => {
|
|
|
17
15
|
const context = usePayContext();
|
|
18
16
|
const locales = useLocales({});
|
|
19
17
|
const { isMobile } = useIsMobile();
|
|
20
|
-
|
|
18
|
+
useRozoPay();
|
|
19
|
+
// @NOTE: This is causing issues with the payment flow
|
|
20
|
+
// so we're disabling it for now. Happen when user iniate connect wallet
|
|
21
21
|
// If we're not in deposit mode, hydrate immediately.
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
// useEffect(() => {
|
|
23
|
+
// if (
|
|
24
|
+
// !context.paymentState.isDepositFlow &&
|
|
25
|
+
// order != null &&
|
|
26
|
+
// order.mode !== RozoPayOrderMode.HYDRATED
|
|
27
|
+
// ) {
|
|
28
|
+
// console.log("HYDRATING ORDER", order, context);
|
|
29
|
+
// hydrateOrder();
|
|
30
|
+
// }
|
|
31
|
+
// }, [context.paymentState.isDepositFlow, hydrateOrder, order]);
|
|
29
32
|
// Show new-user education buttons
|
|
30
33
|
const showLearnMore = !context.options?.hideQuestionMarkCTA;
|
|
31
34
|
const showGetWallet = !context.options?.hideNoWalletCTA;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Pages/Connectors/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Pages/Connectors/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;AA2BM,MAAA,OAAO,GAAa,MAAK;AAC7B,IAAA,MAAM,OAAO,GAAG,aAAa,EAAE,CAAC;AAChC,IAAA,MAAM,OAAO,GAAG,UAAU,CAAC,EAAE,CAAC,CAAC;AAE/B,IAAA,MAAM,EAAE,QAAQ,EAAE,GAAG,WAAW,EAAE,CAAC;IACH,UAAU,GAAG;;;;;;;;;;;;;;;IAiB7C,MAAM,aAAa,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,mBAAmB,CAAC;IAC5D,MAAM,aAAa,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,eAAe,CAAC;IAExD,QACEA,KAAC,WAAW,EAAA,EAAA,QAAA,EAAA,CACVC,IAAC,WAAW,EAAA,EAAC,QAAQ,EAAG,IAAA,EAAA,CAAA,EACxBA,IAAC,aAAa,EAAA,EAAA,CAAG,EAEhB,QAAQ,IACPA,0BACED,IAAC,CAAA,OAAO,eACNA,IAAC,CAAA,YAAY,IAAC,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,aACpDC,GAAC,CAAA,OAAO,8BAAS,OAAO,CAAC,mBAAmB,EAAA,CAAW,EACvDA,GAAA,CAAC,SAAS,EAAE,EAAA,QAAA,EAAA,OAAO,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