Merge branch 'staging' into main

This commit is contained in:
Michael Fatemi 2021-08-17 22:16:11 -04:00
commit 908373d4be
3 changed files with 32 additions and 3 deletions

View File

@ -61,6 +61,12 @@ function EventSignup({ signup }: { signup: IEventSignup }) {
<b>{user.name}</b> <b>{user.name}</b>
{extraDistance && ` +${extraDistance.toFixed(1)} miles`}{' '} {extraDistance && ` +${extraDistance.toFixed(1)} miles`}{' '}
{signup.canDrive && ' (can drive)'} {signup.canDrive && ' (can drive)'}
{signup.note && (
<>
<br />
<span style={{ fontStyle: 'italic' }}>{signup.note}</span>
</>
)}
</span> </span>
{!hasCarpool && {!hasCarpool &&

View File

@ -1,4 +1,8 @@
import { ionAuthorizationEndpoint } from './Authentication/authorizationEndpoint'; import {
googleAuthorizationEndpoint,
ionAuthorizationEndpoint,
} from './Authentication/authorizationEndpoint';
import { showGoogleLogin } from './gatekeeper';
import UILink from './UI/UILink'; import UILink from './UI/UILink';
import UIPrimaryTitle from './UI/UIPrimaryTitle'; import UIPrimaryTitle from './UI/UIPrimaryTitle';
@ -8,8 +12,24 @@ export default function WheelShareLoggedOut() {
<UIPrimaryTitle>WheelShare</UIPrimaryTitle> <UIPrimaryTitle>WheelShare</UIPrimaryTitle>
<p>To get started, log in with your Ion account.</p> <p>To get started, log in with your Ion account.</p>
<UILink href={ionAuthorizationEndpoint}>Log in with Ion</UILink> <UILink href={ionAuthorizationEndpoint}>Log in with Ion</UILink>
{/* <br /> {showGoogleLogin() && (
<UILink href={googleAuthorizationEndpoint}>Log in with Google</UILink> */} <>
<br />
<UILink href={googleAuthorizationEndpoint}>Log in with Google</UILink>
</>
)}
<br />
<p>
If you're new to Ion, follow{' '}
<a
href="https://guides.tjhsst.edu/ion/resetting-your-ion-password"
target="_blank"
rel="noopener noreferrer"
>
this guide
</a>{' '}
to create an account and reset your password
</p>
</> </>
); );
} }

View File

@ -0,0 +1,3 @@
export function showGoogleLogin() {
return process.env.NODE_ENV === 'development';
}