coinley-checkout 0.6.0 → 0.6.1
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.
@@ -20591,13 +20591,13 @@ const PaymentStatus = ({
|
|
20591
20591
|
status,
|
20592
20592
|
message,
|
20593
20593
|
theme: theme2 = "light",
|
20594
|
-
//
|
20594
|
+
// Props for success screen
|
20595
20595
|
payment = null,
|
20596
20596
|
transactionHash = null,
|
20597
20597
|
selectedPaymentMethod = null,
|
20598
20598
|
merchantName = "Merchant",
|
20599
20599
|
onClose = null
|
20600
|
-
//
|
20600
|
+
// The onClose prop for the close button
|
20601
20601
|
}) => {
|
20602
20602
|
const [copiedHash, setCopiedHash] = useState(false);
|
20603
20603
|
const copyTransactionHash = () => __async(void 0, null, function* () {
|
@@ -20611,6 +20611,12 @@ const PaymentStatus = ({
|
|
20611
20611
|
}
|
20612
20612
|
}
|
20613
20613
|
});
|
20614
|
+
const handleClose = () => {
|
20615
|
+
console.log("Payment success screen close button clicked");
|
20616
|
+
if (onClose) {
|
20617
|
+
onClose();
|
20618
|
+
}
|
20619
|
+
};
|
20614
20620
|
const formatTransactionHash = (hash2) => {
|
20615
20621
|
if (!hash2)
|
20616
20622
|
return "";
|
@@ -20747,7 +20753,7 @@ const PaymentStatus = ({
|
|
20747
20753
|
onClose && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
20748
20754
|
"button",
|
20749
20755
|
{
|
20750
|
-
onClick:
|
20756
|
+
onClick: handleClose,
|
20751
20757
|
className: "w-full py-3 px-4 bg-[#7042D2] text-white font-medium rounded-2xl text-lg shadow-md hover:bg-[#5b34b1] transition-colors",
|
20752
20758
|
style: { borderRadius: "1.5rem" },
|
20753
20759
|
children: "Close"
|
@@ -21152,7 +21158,10 @@ const CoinleyModal = ({
|
|
21152
21158
|
return "No wallet address configured for this network";
|
21153
21159
|
};
|
21154
21160
|
const handleSuccessClose = () => {
|
21155
|
-
|
21161
|
+
console.log("Success screen close button clicked");
|
21162
|
+
if (onClose) {
|
21163
|
+
onClose();
|
21164
|
+
}
|
21156
21165
|
};
|
21157
21166
|
const formatAmount = (amount) => {
|
21158
21167
|
return parseFloat(amount).toFixed(2);
|