File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,7 @@ import Link from "next/link";
6
6
import { useRouter } from "next/navigation" ;
7
7
import { useEffect } from "react" ;
8
8
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" ;
11
10
12
11
const AuthPage = ( ) => {
13
12
const router = useRouter ( ) ;
@@ -32,9 +31,8 @@ const AuthPage = () => {
32
31
< h1 className = "text-xl text-white" > Sign in</ h1 >
33
32
< div className = "h-1" />
34
33
< 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
38
36
</ Button >
39
37
</ Link >
40
38
</ div >
Original file line number Diff line number Diff line change @@ -30,3 +30,15 @@ export const SupernovaGlobeLogoImage = (props: ImageProps) => (
30
30
{ ...props }
31
31
/>
32
32
) ;
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
+ ) ;
You can’t perform that action at this time.
0 commit comments