feat: 🎸 google (#587)

added login first
This commit is contained in:
Stan Girard 2023-07-10 17:30:15 +02:00 committed by GitHub
parent 9ee86222a4
commit 85570d2e9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 7 deletions

View File

@ -10,7 +10,7 @@ export const GoogleLoginButton = () => {
<Button <Button
onClick={signInWithGoogle} onClick={signInWithGoogle}
isLoading={isPending} isLoading={isPending}
variant={"secondary"} variant={"danger"}
type="button" type="button"
data-testid="google-login-button" data-testid="google-login-button"
> >

View File

@ -46,7 +46,7 @@ const Hero = (): JSX.Element => {
Quivr is your second brain in the cloud, designed to easily store and Quivr is your second brain in the cloud, designed to easily store and
retrieve unstructured information. retrieve unstructured information.
</p> </p>
<Link href={"/signup"}> <Link href={"/login"}>
<Button>Get Started</Button> <Button>Get Started</Button>
</Link> </Link>
<Link target="_blank" href={"https://github.com/StanGirard/quivr/"}> <Link target="_blank" href={"https://github.com/StanGirard/quivr/"}>

View File

@ -13,10 +13,19 @@ export const AuthButtons = (): JSX.Element => {
</Link> </Link>
); );
} }
else if (pathname === "/login") {
return (
<Link href={"/signup"}>
<Button variant={"secondary"}>Sign up</Button>
</Link>
)
} else {
return (
<Link href={"/login"}>
<Button variant={"secondary"}>Login</Button>
</Link>
);
}
return (
<Link href={"/signup"}>
<Button variant={"secondary"}>Register</Button>
</Link>
);
}; };