Skip to content

Commit

Permalink
Update refer-button.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Jan 4, 2025
1 parent 2e39b20 commit 78f874c
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions apps/web/ui/layout/sidebar/refer-button.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"use client";

import { Gift } from "@dub/ui/icons";
import { cn } from "@dub/utils";
import { AnimatePresence, motion } from "framer-motion";
import { useSession } from "next-auth/react";
import Link from "next/link";
import { usePathname } from "next/navigation";
Expand All @@ -21,21 +19,9 @@ export function ReferButton() {
return (
<Link
href="/account/settings/referrals"
className={cn(
"font-lg relative size-4 shrink-0 overflow-hidden rounded-full transition-all active:scale-90 active:bg-gray-50",
"outline-none ring-offset-2 ring-offset-neutral-100 focus-visible:ring-2 focus-visible:ring-black/50",
)}
className="animate-fade-in size-4 shrink-0 rounded-full"
>
<AnimatePresence>
<motion.div
className="absolute inset-0 flex items-center justify-center font-medium text-neutral-500 hover:text-neutral-700"
initial={{ opacity: 0, scale: 0 }}
animate={{ opacity: 1, scale: 1 }}
exit={{ opacity: 0, scale: 0 }}
>
<Gift className="size-4" />
</motion.div>
</AnimatePresence>
<Gift className="size-4" />
</Link>
);
}

0 comments on commit 78f874c

Please sign in to comment.