diff --git a/src/components/Event/EventSignups.tsx b/src/components/Event/EventSignups.tsx index ee25d9e..9725cac 100644 --- a/src/components/Event/EventSignups.tsx +++ b/src/components/Event/EventSignups.tsx @@ -61,6 +61,12 @@ function EventSignup({ signup }: { signup: IEventSignup }) { {user.name} {extraDistance && ` +${extraDistance.toFixed(1)} miles`}{' '} {signup.canDrive && ' (can drive)'} + {signup.note && ( + <> +
+ {signup.note} + + )} {!hasCarpool && diff --git a/src/components/WheelShareLoggedOut.tsx b/src/components/WheelShareLoggedOut.tsx index fc91b3b..eb4c172 100644 --- a/src/components/WheelShareLoggedOut.tsx +++ b/src/components/WheelShareLoggedOut.tsx @@ -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 UIPrimaryTitle from './UI/UIPrimaryTitle'; @@ -8,8 +12,24 @@ export default function WheelShareLoggedOut() { WheelShare

To get started, log in with your Ion account.

Log in with Ion - {/*
- Log in with Google */} + {showGoogleLogin() && ( + <> +
+ Log in with Google + + )} +
+

+ If you're new to Ion, follow{' '} + + this guide + {' '} + to create an account and reset your password +

); } diff --git a/src/components/gatekeeper.ts b/src/components/gatekeeper.ts new file mode 100644 index 0000000..2f97d70 --- /dev/null +++ b/src/components/gatekeeper.ts @@ -0,0 +1,3 @@ +export function showGoogleLogin() { + return process.env.NODE_ENV === 'development'; +}