mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-20 15:19:51 +00:00
Allow create portal session for enterprise too
This commit is contained in:
@@ -477,7 +477,7 @@ export default function BillingPage() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleContactUs = () => {
|
const handleContactUs = () => {
|
||||||
window.open("https://pangolin.net/talk-to-us", "_blank");
|
window.open("https://pangolin.net/contact", "_blank");
|
||||||
};
|
};
|
||||||
|
|
||||||
// Get current plan ID from tier
|
// Get current plan ID from tier
|
||||||
@@ -558,6 +558,14 @@ export default function BillingPage() {
|
|||||||
// Get button label and action for each plan
|
// Get button label and action for each plan
|
||||||
const getPlanAction = (plan: PlanOption) => {
|
const getPlanAction = (plan: PlanOption) => {
|
||||||
if (plan.id === "enterprise") {
|
if (plan.id === "enterprise") {
|
||||||
|
if (plan.id === currentPlanId) {
|
||||||
|
return {
|
||||||
|
label: "Manage Current Plan",
|
||||||
|
action: handleModifySubscription,
|
||||||
|
variant: "default" as const,
|
||||||
|
disabled: false
|
||||||
|
};
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
label: "Contact Us",
|
label: "Contact Us",
|
||||||
action: handleContactUs,
|
action: handleContactUs,
|
||||||
|
|||||||
Reference in New Issue
Block a user