subos-frontend 1.0.93 → 1.0.94

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
@@ -1587,7 +1587,14 @@ var ChangeCardButton = ({
1587
1587
  );
1588
1588
  };
1589
1589
  var PaymentCancelView = ({ details, dashboardUrl = "/dashboard", planUrl = "/plans", supportUrl = "/support" }) => {
1590
- const { navigateTo, goBack } = useNavigation();
1590
+ const { navigateTo } = useNavigation();
1591
+ const handleTryAgain = () => {
1592
+ if (planUrl && planUrl.startsWith("/")) {
1593
+ window.history.back();
1594
+ } else {
1595
+ navigateTo("dashboard");
1596
+ }
1597
+ };
1591
1598
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-md mx-auto bg-white rounded-lg shadow-md overflow-hidden", children: [
1592
1599
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-gradient-to-r from-orange-500 to-red-500 text-white p-6 text-center", children: [
1593
1600
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-2 flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -1650,7 +1657,7 @@ var PaymentCancelView = ({ details, dashboardUrl = "/dashboard", planUrl = "/pla
1650
1657
  /* @__PURE__ */ jsxRuntime.jsx(
1651
1658
  "button",
1652
1659
  {
1653
- onClick: goBack,
1660
+ onClick: handleTryAgain,
1654
1661
  className: "w-full bg-blue-600 hover:bg-blue-700 text-white font-medium py-3 px-4 rounded-md transition-colors",
1655
1662
  children: "Try Payment Again"
1656
1663
  }