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.

Update payment-methods.tsx

Kiran Kf64486fc5961
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/payment-methods.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/payment-methods.tsx
index e35a46ce10..9371c936c2 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/payment-methods.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/payment-methods.tsx
@@ -4,7 +4,6 @@ import usePaymentMethods from "@/lib/swr/use-payment-methods";
import useWorkspace from "@/lib/swr/use-workspace";
import { Button } from "@dub/ui";
import { cn } from "@dub/utils";
-import { useRouter } from "next/navigation";
import { useState } from "react";
import { Stripe } from "stripe";
import { PaymentMethodTypesList } from "./payment-method-types";
@@ -55,7 +54,6 @@ const PaymentMethodCard = ({
type: Stripe.PaymentMethod.Type;
paymentMethod?: Stripe.PaymentMethod;
}) => {
- const router = useRouter();
const { slug } = useWorkspace();
const [isLoading, setIsLoading] = useState(false);