subos-frontend 1.0.35 → 1.0.36
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.js
CHANGED
|
@@ -1374,7 +1374,7 @@ var ChangeCardButton = ({
|
|
|
1374
1374
|
}
|
|
1375
1375
|
);
|
|
1376
1376
|
};
|
|
1377
|
-
var PaymentCancelView = ({ details }) => {
|
|
1377
|
+
var PaymentCancelView = ({ details, dashboardUrl = "/dashboard", planUrl = "/plans", supportUrl = "/support" }) => {
|
|
1378
1378
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-md mx-auto bg-white rounded-lg shadow-md overflow-hidden", children: [
|
|
1379
1379
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-gradient-to-r from-orange-500 to-red-500 text-white p-6 text-center", children: [
|
|
1380
1380
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-4xl mb-2", children: "\u274C" }),
|
|
@@ -1384,7 +1384,7 @@ var PaymentCancelView = ({ details }) => {
|
|
|
1384
1384
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-6", children: [
|
|
1385
1385
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6", children: [
|
|
1386
1386
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-lg font-semibold text-gray-900 mb-4", children: "What Happened?" }),
|
|
1387
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 bg-orange-50 rounded-lg mb-4", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-orange-800", children: details.reason ? `Reason: ${details.reason}` : "
|
|
1387
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 bg-orange-50 rounded-lg mb-4", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-orange-800", children: details.reason ? `Reason: ${details.reason}` : "Your payment was cancelled before it was completed. No charges were made to your account." }) }),
|
|
1388
1388
|
(details.gateway || details.sessionId) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3 mb-4", children: [
|
|
1389
1389
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-medium text-gray-900", children: "Transaction Details" }),
|
|
1390
1390
|
details.gateway && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between", children: [
|
|
@@ -1423,18 +1423,18 @@ var PaymentCancelView = ({ details }) => {
|
|
|
1423
1423
|
children: "Try Payment Again"
|
|
1424
1424
|
}
|
|
1425
1425
|
),
|
|
1426
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1426
|
+
planUrl && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1427
1427
|
"button",
|
|
1428
1428
|
{
|
|
1429
|
-
onClick: () => window.location.href =
|
|
1429
|
+
onClick: () => window.location.href = planUrl,
|
|
1430
1430
|
className: "w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-medium py-3 px-4 rounded-md transition-colors",
|
|
1431
1431
|
children: "Browse Plans"
|
|
1432
1432
|
}
|
|
1433
1433
|
),
|
|
1434
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1434
|
+
dashboardUrl && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1435
1435
|
"button",
|
|
1436
1436
|
{
|
|
1437
|
-
onClick: () => window.location.href =
|
|
1437
|
+
onClick: () => window.location.href = dashboardUrl,
|
|
1438
1438
|
className: "w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-medium py-3 px-4 rounded-md transition-colors",
|
|
1439
1439
|
children: "Return Home"
|
|
1440
1440
|
}
|
|
@@ -1443,7 +1443,7 @@ var PaymentCancelView = ({ details }) => {
|
|
|
1443
1443
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-6 text-center", children: /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm text-gray-500", children: [
|
|
1444
1444
|
"Having trouble?",
|
|
1445
1445
|
" ",
|
|
1446
|
-
/* @__PURE__ */ jsxRuntime.jsx("a", { href:
|
|
1446
|
+
/* @__PURE__ */ jsxRuntime.jsx("a", { href: supportUrl, className: "text-blue-600 hover:text-blue-700", children: "Contact Support" })
|
|
1447
1447
|
] }) })
|
|
1448
1448
|
] })
|
|
1449
1449
|
] });
|