Skip to content

Commit 9695ea2

Browse files
committed
google icon on sign in button
1 parent 476c841 commit 9695ea2

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

apps/desktop-v2/app/auth/page.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import Link from "next/link";
66
import { useRouter } from "next/navigation";
77
import { useEffect } from "react";
88
import { homeRoute } from "../meta";
9-
import { GlobeIcon } from "@radix-ui/react-icons";
10-
import { SupernovaGlobeLogoImage } from "@/components/icons";
9+
import { GoogleIcon, SupernovaGlobeLogoImage } from "@/components/icons";
1110

1211
const AuthPage = () => {
1312
const router = useRouter();
@@ -32,9 +31,8 @@ const AuthPage = () => {
3231
<h1 className="text-xl text-white">Sign in</h1>
3332
<div className="h-1" />
3433
<Link href={supernovaAPI.getGoogleOAuthUrl()}>
35-
{/* TODO: replace with Google logo */}
36-
<Button bgVariant="white" className="gap-1">
37-
<GlobeIcon /> Sign in with Google
34+
<Button bgVariant="white" className="gap-2">
35+
<GoogleIcon priority /> Sign in with Google
3836
</Button>
3937
</Link>
4038
</div>

apps/desktop-v2/components/icons.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,15 @@ export const SupernovaGlobeLogoImage = (props: ImageProps) => (
3030
{...props}
3131
/>
3232
);
33+
34+
export const googleIconPath = "/icons/google-icon.png";
35+
36+
export const GoogleIcon = (props: ImageProps) => (
37+
<Image
38+
src={googleIconPath}
39+
width={20}
40+
height={20}
41+
alt="Google icon"
42+
{...props}
43+
/>
44+
);
107 KB
Loading

0 commit comments

Comments
 (0)