Skip to content

Commit

Permalink
feat: add stripe portal link
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwynr committed Dec 2, 2024
1 parent 7528f95 commit 9387264
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
3 changes: 2 additions & 1 deletion locales/de/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,8 @@
"active": "Aktiv",
"waiting": "Wartend"
},
"cannotCancelTooEarly": "Abonnements können nur 24 Stunden nach dem Erstkauf gekündigt werden."
"cannotCancelTooEarly": "Abonnements können nur 24 Stunden nach dem Erstkauf gekündigt werden.",
"billingDetails": "Zahlungsdetails"
},
"plans": {
"starter": "Starter",
Expand Down
3 changes: 2 additions & 1 deletion locales/en/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,8 @@
"active": "Active",
"waiting": "Waiting"
},
"cannotCancelTooEarly": "Subscriptions can only be cancelled 24 hours after the initial purchase."
"cannotCancelTooEarly": "Subscriptions can only be cancelled 24 hours after the initial purchase.",
"billingDetails": "Billing details"
},
"plans": {
"starter": "Starter",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@filen/web",
"private": false,
"version": "0.1.77",
"version": "0.1.78",
"type": "module",
"description": "Filen Web & Desktop app",
"scripts": {
Expand Down
11 changes: 11 additions & 0 deletions src/components/settings/subscriptions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,17 @@ export const Subscriptions = memo(() => {
{t("settings.subscriptions.cancel")}
</p>
)}
{subscription.gateway.includes("stripe") &&
!subscription.planName.toLowerCase().includes("lifetime") && (
<a
href="https://billing.stripe.com/p/login/6oE9Bl8Lxey0ayI9AA"
target="blank"
>
<p className="text-sm underline mt-3 cursor-pointer text-blue-500">
{t("settings.subscriptions.billingDetails")}
</p>
</a>
)}
</div>
</div>
</div>
Expand Down

0 comments on commit 9387264

Please sign in to comment.