Skip to content

Commit

Permalink
chore: Disable apple auth (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-almonacid authored Feb 13, 2024
1 parent e9113f8 commit fd2c895
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions packages/frontend/src/components/auth/AuthModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { ReactComponent as EnvelopeIcon } from "src/assets/icons/socials/envelop
import { ReactComponent as GoogleIcon } from "src/assets/icons/socials/google_icon.svg";
import { Auth, AuthProps } from "./Auth";

const ENABLE_APPLE_AUTH = false;

export const AuthMethodSelection: FC<{
handleLogin: () => void;
handleSSOCallback: (provider: EAuthMethod) => void;
Expand All @@ -26,12 +28,14 @@ export const AuthMethodSelection: FC<{
<GoogleIcon /> &nbsp; Continue with Google
</Button>

<Button
className="border-backgroundBlue text-primary inline-flex w-full items-center justify-center gap-1 rounded-lg px-4 py-6 text-base font-bold tracking-tight"
onClick={() => handleSSOCallback(EAuthMethod.Apple)}
>
<AppleIcon /> &nbsp; Continue with Apple
</Button>
{ENABLE_APPLE_AUTH && (
<Button
className="border-backgroundBlue text-primary inline-flex w-full items-center justify-center gap-1 rounded-lg px-4 py-6 text-base font-bold tracking-tight"
onClick={() => handleSSOCallback(EAuthMethod.Apple)}
>
<AppleIcon /> &nbsp; Continue with Apple
</Button>
)}
</div>
<div className="mt-4 flex items-center gap-1">
<span className="text-primary text-sm">
Expand Down

0 comments on commit fd2c895

Please sign in to comment.