subos-frontend 1.0.85 → 1.0.87

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
@@ -1956,7 +1956,7 @@ var TransactionItem = ({
1956
1956
  transaction.transactionStatus,
1957
1957
  customStatusColors
1958
1958
  )}`,
1959
- children: transaction.transactionStatus === "payment_failed" ? "Failed" : transaction.transactionStatus === "succeeded" ? "Succeeded" : transaction.transactionStatus === "activated" ? "Activated" : transaction.transactionStatus
1959
+ children: transaction.transactionStatus === "payment_failed" ? "Failed" : transaction.transactionStatus === "succeeded" ? "Succeeded" : transaction.transactionStatus === "activated" ? "Activated" : transaction.transactionStatus === "renewed" ? "Renewed" : transaction.transactionStatus
1960
1960
  }
1961
1961
  ),
1962
1962
  showFields.invoice && showInvoiceButton && transaction.invoice_pdf && /* @__PURE__ */ jsxRuntime.jsx(
@@ -3009,8 +3009,7 @@ var UpgradeSummary = ({
3009
3009
  proration: 0,
3010
3010
  // No proration for current plan
3011
3011
  planCode: currentPlan.code,
3012
- planCurrency: "USD",
3013
- // Default currency
3012
+ planCurrency: currentPlan.currency,
3014
3013
  contactSupport: false
3015
3014
  };
3016
3015
  setCheckoutInfo(mockCheckoutInfo);
@@ -3044,7 +3043,8 @@ var UpgradeSummary = ({
3044
3043
  const intervalDisplay = displayInfo.planInterval === "MONTHLY" ? "Mo" : "Yr";
3045
3044
  const dueToday = displayInfo.proration > 0 ? displayInfo.proration : displayInfo.planPrice;
3046
3045
  const shouldContactSupport = !!displayInfo.contactSupport;
3047
- const currencySymbol = getCurrencySymbol(displayInfo.planCurrency);
3046
+ const currencyCode = displayInfo.planCurrency || (currentPlan == null ? void 0 : currentPlan.currency) || currency;
3047
+ const currencySymbol = getCurrencySymbol(currencyCode);
3048
3048
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full", children: /* @__PURE__ */ jsxRuntime.jsx(
3049
3049
  "div",
3050
3050
  {
@@ -3333,7 +3333,7 @@ var Pagination = ({
3333
3333
  var DashboardPage = ({
3334
3334
  externalId
3335
3335
  }) => {
3336
- var _a, _b, _c;
3336
+ var _a, _b, _c, _d;
3337
3337
  const subscription = useSubscription();
3338
3338
  const plans = usePlans();
3339
3339
  const lastLoadedIdRef = React10.useRef(null);
@@ -3398,11 +3398,12 @@ var DashboardPage = ({
3398
3398
  isDefault: false,
3399
3399
  intervalCount: 1,
3400
3400
  projectId: "",
3401
- charges: subscription.subscription.plan.charges || []
3401
+ charges: subscription.subscription.plan.charges || [],
3402
+ currency: (_c = subscription.subscription) == null ? void 0 : _c.currency
3402
3403
  } : null,
3403
3404
  externalId,
3404
3405
  onUpgrade: handleUpgrade,
3405
- isVisible: !!plans.selectedPlan || !!((_c = subscription.subscription) == null ? void 0 : _c.plan)
3406
+ isVisible: !!plans.selectedPlan || !!((_d = subscription.subscription) == null ? void 0 : _d.plan)
3406
3407
  }
3407
3408
  )
3408
3409
  ] }) }) });