Skip to content

Commit 5858e31

Browse files
committed
add google logo to google oauth
1 parent 70f7729 commit 5858e31

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

packages/web/public/google.svg

Lines changed: 2 additions & 0 deletions
Loading

packages/web/src/app/login/page.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { redirect } from "next/navigation"
44
import logoDark from "@/public/sb_logo_dark_large.png";
55
import logoLight from "@/public/sb_logo_light_large.png";
66
import githubLogo from "@/public/github.svg";
7+
import googleLogo from "@/public/google.svg";
78
import Image from "next/image";
89
import { Button } from "@/components/ui/button";
910

@@ -39,6 +40,13 @@ export default async function Login(props: {
3940
}
4041
}
4142

43+
if (provider.id === "google") {
44+
return {
45+
provider,
46+
logo: googleLogo,
47+
}
48+
}
49+
4250
return { provider }
4351
})
4452
.map(({ provider, logo }) => (

0 commit comments

Comments
 (0)