Skip to content

Commit ca031f0

Browse files
committed
Update and unify to 'Manage Subscriptions'
1 parent 980b4ea commit ca031f0

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

app/api/stripe/get-userinfo-subscriptions/route.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ export async function POST(req: NextRequest) {
2828
if (!customerIds || customerIds.length === 0)
2929
return NextResponse.json([], { status: 200, headers });
3030

31-
const subscriptionPromises = customerIds.map((customerId) =>
32-
hasActiveSubscription(customerId)
33-
);
31+
const subscriptionPromises = customerIds.map((customerId) => hasActiveSubscription(customerId));
3432

3533
const booleanMapping = await Promise.all(subscriptionPromises);
3634

components/Footer.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default function Footer() {
4040
<div className="flex w-full flex-col justify-center items-center">
4141
<div className="flex flex-col gap-10 sm:gap-8 py-10 mt-auto w-full justify-center">
4242
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8 w-full max-w-5xl mx-auto px-6">
43-
{/* Product Links with conditional Manage Payment */}
43+
{/* Product Links with conditional Manage Subscriptions */}
4444
<div className="flex flex-col gap-4 text-center sm:text-left">
4545
<h3 className="font-bold text-gray-900">{categoryTitles.product}</h3>
4646
<ul className="flex flex-col gap-3">
@@ -74,7 +74,7 @@ export default function Footer() {
7474
}}
7575
className="text-gray-600 hover:text-gray-900 hover:underline"
7676
>
77-
Manage Payment
77+
Manage Subscriptions
7878
</Link>
7979
</li>
8080
)}

components/HomePage/Pricing.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export default function Pricing() {
197197
{selectedIndex != null &&
198198
installationsSubscribed &&
199199
installationsSubscribed[selectedIndex] === true
200-
? "Manage Plan"
200+
? "Manage Subscriptions"
201201
: "Subscribe"}
202202
</button>
203203
</div>

components/Navbar/MobileMenu.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default function MobileDrawer({ setIsNavOpen, isNavOpen, posthog }: Mobil
111111
createPortalOrCheckoutURL(userId, jwtToken, installations, selectedIndex)
112112
}
113113
>
114-
Manage Payment
114+
Manage Subscriptions
115115
</span>
116116
</li>
117117
)}

components/Navbar/ProfileIcon.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const ProfileIcon = ({ session, mobileMenuTrigger = false }: ProfileIconProps) =
109109
createPortalOrCheckoutURL(userId, jwtToken, installations, selectedIndex)
110110
}
111111
>
112-
<span className="link">Manage Payment</span>
112+
<span className="link">Manage Subscriptions</span>
113113
</button>
114114
)}
115115

0 commit comments

Comments
 (0)