diff --git a/ui/src/components/BrandButtons/LoginWithGoogle.test.tsx b/ui/src/components/BrandButtons/LoginWithGoogle.test.tsx index 78dfd38..3174855 100644 --- a/ui/src/components/BrandButtons/LoginWithGoogle.test.tsx +++ b/ui/src/components/BrandButtons/LoginWithGoogle.test.tsx @@ -14,7 +14,7 @@ describe("LoginWithGoogle", () => { loginWithGoogle: mockLoginWithGoogle, }); - render(); + render(); const button = screen.getByRole("button", { name: /Continuer avec Google/i, @@ -28,7 +28,7 @@ describe("LoginWithGoogle", () => { loginWithGoogle: mockLoginWithGoogle, }); - render(); + render(); const button = screen.getByRole("button", { name: /Continuer avec Google/i, diff --git a/ui/src/components/BrandButtons/LoginWithGoogle.tsx b/ui/src/components/BrandButtons/LoginWithGoogle.tsx index 7417dee..0dedcd0 100644 --- a/ui/src/components/BrandButtons/LoginWithGoogle.tsx +++ b/ui/src/components/BrandButtons/LoginWithGoogle.tsx @@ -1,12 +1,8 @@ import "./login-with-google.css"; import { useLoginGoogle } from "../../hooks/auth"; -export function LoginWithGoogle({ - redirectUrl, -}: { - redirectUrl: string | null; -}) { - const { loginWithGoogle } = useLoginGoogle({ redirectUrl }); +export function LoginWithGoogle() { + const { loginWithGoogle } = useLoginGoogle(); return (