diff --git a/components/login-button.tsx b/components/login-button.tsx index 2b965e5..54207f7 100644 --- a/components/login-button.tsx +++ b/components/login-button.tsx @@ -6,7 +6,7 @@ import { signIn } from 'next-auth/react' import { cn } from '@/lib/utils' import { Button, type ButtonProps } from '@/components/ui/button' import { IconGitHub, IconSpinner } from '@/components/ui/icons' -import { useSearchParams } from 'next/navigation' + interface LoginButtonProps extends ButtonProps { showGithubIcon?: boolean text?: string @@ -19,18 +19,13 @@ export function LoginButton({ ...props }: LoginButtonProps) { const [isLoading, setIsLoading] = React.useState(false) - const searchParams = useSearchParams() - const next = searchParams.get('next') || '' return (