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 refer-button.tsx

Steven Tey34d18e1d9038
diff --git a/apps/web/ui/layout/sidebar/refer-button.tsx b/apps/web/ui/layout/sidebar/refer-button.tsx
index 61c1cff260..41b7147000 100644
--- a/apps/web/ui/layout/sidebar/refer-button.tsx
+++ b/apps/web/ui/layout/sidebar/refer-button.tsx
@@ -2,15 +2,8 @@
import { Gift } from "@dub/ui/icons";
import Link from "next/link";
-import { usePathname } from "next/navigation";
export function ReferButton() {
- const pathname = usePathname();
-
- if (pathname === "/account/settings/referrals") {
- return null;
- }
-
return (
<Link
href="/account/settings/referrals"