@doujins/payments-ui 0.0.8 → 0.0.10
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/dist/index.cjs +6 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1848,13 +1848,10 @@ var useSolanaQrPayment = (options) => {
|
|
|
1848
1848
|
const resetState = React3.useCallback(
|
|
1849
1849
|
(message) => {
|
|
1850
1850
|
clearTimers();
|
|
1851
|
-
setIntent(
|
|
1852
|
-
setQrDataUri(
|
|
1853
|
-
setTimeRemaining(
|
|
1854
|
-
setError(
|
|
1855
|
-
const next = message === void 0 ? null : message;
|
|
1856
|
-
return prev === next ? prev : next;
|
|
1857
|
-
});
|
|
1851
|
+
setIntent(null);
|
|
1852
|
+
setQrDataUri(null);
|
|
1853
|
+
setTimeRemaining(0);
|
|
1854
|
+
setError(message ?? null);
|
|
1858
1855
|
},
|
|
1859
1856
|
[clearTimers]
|
|
1860
1857
|
);
|
|
@@ -2508,7 +2505,7 @@ var SolanaPaymentSelector = ({
|
|
|
2508
2505
|
" Scan QR Code"
|
|
2509
2506
|
] })
|
|
2510
2507
|
] }),
|
|
2511
|
-
/* @__PURE__ */ jsxRuntime.jsx(TabsContent, { value: "wallet", className: "mt-4", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2508
|
+
/* @__PURE__ */ jsxRuntime.jsx(TabsContent, { value: "wallet", className: "mt-4", children: activeTab === "wallet" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2512
2509
|
DirectPayment,
|
|
2513
2510
|
{
|
|
2514
2511
|
priceId,
|
|
@@ -2521,7 +2518,7 @@ var SolanaPaymentSelector = ({
|
|
|
2521
2518
|
onPaymentError: handlePaymentError
|
|
2522
2519
|
}
|
|
2523
2520
|
) }),
|
|
2524
|
-
/* @__PURE__ */ jsxRuntime.jsx(TabsContent, { value: "qr", className: "mt-4", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2521
|
+
/* @__PURE__ */ jsxRuntime.jsx(TabsContent, { value: "qr", className: "mt-4", children: activeTab === "qr" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2525
2522
|
QRCodePayment,
|
|
2526
2523
|
{
|
|
2527
2524
|
priceId,
|