Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

small improvements to billing page

Steven Tey478a299e0d14
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/page.tsx
index 229620c6f9..f33d747556 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/page.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/page.tsx
@@ -6,7 +6,7 @@ import PlanUsage from "./plan-usage";
export default function WorkspaceBilling() {
return (
<PageContent title="Billing">
- <PageWidthWrapper className="grid gap-8">
+ <PageWidthWrapper className="grid gap-8 pb-12">
<PlanUsage />
<PaymentMethods />
</PageWidthWrapper>
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/payment-methods.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/payment-methods.tsx
index 71c3fedb63..b680213c25 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/payment-methods.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/payment-methods.tsx
@@ -32,7 +32,7 @@ export default function PaymentMethods() {
const router = useRouter();
const { paymentMethods, defaultPaymentMethodId } = usePaymentMethods();
const [isLoading, setIsLoading] = useState(false);
- const { slug, stripeId, plan, role } = useWorkspace();
+ const { slug, stripeId, role } = useWorkspace();
const regularPaymentMethods = paymentMethods?.filter(
(pm) => !DIRECT_DEBIT_PAYMENT_METHOD_TYPES.includes(pm.type),
@@ -55,7 +55,7 @@ export default function PaymentMethods() {
router.push(url);
};
- if (plan === "free") {
+ if (!stripeId) {
return null;
}