diff --git a/ui/src/App.tsx b/ui/src/App.tsx index 610cca6..1b121e7 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -45,14 +45,7 @@ export const App = () => { } /> - - - - } - /> + { } /> + + + } + > + + + + } + /> + } /> } /> }> diff --git a/ui/src/components/BrandButtons/LoginWithGoogle.test.tsx b/ui/src/components/BrandButtons/LoginWithGoogle.test.tsx index 3174855..78dfd38 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 0dedcd0..7417dee 100644 --- a/ui/src/components/BrandButtons/LoginWithGoogle.tsx +++ b/ui/src/components/BrandButtons/LoginWithGoogle.tsx @@ -1,8 +1,12 @@ import "./login-with-google.css"; import { useLoginGoogle } from "../../hooks/auth"; -export function LoginWithGoogle() { - const { loginWithGoogle } = useLoginGoogle(); +export function LoginWithGoogle({ + redirectUrl, +}: { + redirectUrl: string | null; +}) { + const { loginWithGoogle } = useLoginGoogle({ redirectUrl }); return (