From 908208898ec4b1dff38564bc15d7d54b349ead82 Mon Sep 17 00:00:00 2001 From: Surajdusane <138127406+Surajdusane@users.noreply.github.com> Date: Mon, 19 May 2025 12:04:18 +0530 Subject: [PATCH] fix: improve forgot password dialog opacity and remove duplicate close button --- frontend/src/app/auth/page.tsx | 2 +- frontend/src/components/GoogleSignIn.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/auth/page.tsx b/frontend/src/app/auth/page.tsx index aa5b6793..b90c143b 100644 --- a/frontend/src/app/auth/page.tsx +++ b/frontend/src/app/auth/page.tsx @@ -509,7 +509,7 @@ function LoginContent() { {/* Forgot Password Dialog */} - +
diff --git a/frontend/src/components/GoogleSignIn.tsx b/frontend/src/components/GoogleSignIn.tsx index 1b6e3d87..a99eeb8d 100644 --- a/frontend/src/components/GoogleSignIn.tsx +++ b/frontend/src/components/GoogleSignIn.tsx @@ -3,6 +3,7 @@ import { useEffect, useCallback, useRef, useState } from 'react'; import Script from 'next/script'; import { createClient } from '@/lib/supabase/client'; +import { useTheme } from 'next-themes'; // Add type declarations for Google One Tap declare global { @@ -68,6 +69,7 @@ interface GoogleSignInProps { export default function GoogleSignIn({ returnUrl }: GoogleSignInProps) { const googleClientId = process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID; const [isLoading, setIsLoading] = useState(false); + const { resolvedTheme } = useTheme(); const handleGoogleSignIn = useCallback( async (response: GoogleSignInResponse) => { @@ -184,7 +186,7 @@ export default function GoogleSignIn({ returnUrl }: GoogleSignInProps) { if (buttonContainer) { window.google.accounts.id.renderButton(buttonContainer, { type: 'standard', - theme: 'outline', + theme: resolvedTheme === 'dark' ? 'filled_black' : 'outline', size: 'large', text: 'continue_with', shape: 'pill',