Skip to content

Commit

Permalink
Use university logos in SignInForm
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiuszbachorski committed Feb 4, 2025
1 parent ce22703 commit 6c20f86
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions routes/~sign-in/~index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ import { signInWithEmailAndPassword, signInWithPopup } from "firebase/auth";
import { Helmet } from "react-helmet";
import { AsideEngageLayout } from "@/components/AsideEngageLayout";
import { env } from "@/env";
import { authProvider, auth } from "@/modules/firebase/app";
import { auth, authProvider } from "@/modules/firebase/app";
import johnsHopkingsLogoImg from "./johnsHopkinsLogo.png";
import michiganLogoImg from "./michiganLogo.png";
import stanfordLogoImg from "./stanfordLogo.png";

Check warning on line 18 in routes/~sign-in/~index.tsx

View check run for this annotation

Codecov / codecov/patch

routes/~sign-in/~index.tsx#L15-L18

Added lines #L15 - L18 were not covered by tests

const SignIn = () => (
<AsideEngageLayout>
Expand All @@ -22,12 +25,30 @@ const SignIn = () => (
<AuthSignInForm
className="mx-auto w-[350px]"
providers={[
{ name: "Stanford", provider: authProvider.stanford },
{ name: "Johns Hopkins", provider: authProvider.johnsHopkins },
{ name: "Michigan", provider: authProvider.michigan },
{
name: "Stanford",
provider: authProvider.stanford,
icon: <img src={stanfordLogoImg} alt="Stanford University logo" />,
},
{
name: "Johns Hopkins",
provider: authProvider.johnsHopkins,
icon: (
<img
src={johnsHopkingsLogoImg}
alt="Johns Hopkins University logo"
/>

Check warning on line 40 in routes/~sign-in/~index.tsx

View check run for this annotation

Codecov / codecov/patch

routes/~sign-in/~index.tsx#L28-L40

Added lines #L28 - L40 were not covered by tests
),
},
{
name: "Michigan",
provider: authProvider.michigan,
icon: <img src={michiganLogoImg} alt="University of Michigan logo" />,
},

Check warning on line 47 in routes/~sign-in/~index.tsx

View check run for this annotation

Codecov / codecov/patch

routes/~sign-in/~index.tsx#L42-L47

Added lines #L42 - L47 were not covered by tests
]}
enableEmailPassword={env.VITE_PUBLIC_EMAIL_PASSWORD_SIGN_IN}
auth={auth}
buttonSize="lg"

Check warning on line 51 in routes/~sign-in/~index.tsx

View check run for this annotation

Codecov / codecov/patch

routes/~sign-in/~index.tsx#L51

Added line #L51 was not covered by tests
signInWithPopup={signInWithPopup}
signInWithEmailAndPassword={signInWithEmailAndPassword}
/>
Expand Down

0 comments on commit 6c20f86

Please sign in to comment.