diff --git a/app/main.wasp b/app/main.wasp index 3f59068..fba8738 100644 --- a/app/main.wasp +++ b/app/main.wasp @@ -201,10 +201,10 @@ page LoginPage { component: import Login from "@src/client/auth/LoginPage" } -// route SignupRoute { path: "/signup", to: SignupPage } -// page SignupPage { -// component: import { Signup } from "@src/client/auth/SignupPage" -// } +route SignupRoute { path: "/signup", to: SignupPage } +page SignupPage { + component: import { Signup } from "@src/client/auth/SignupPage" +} route TocPageRoute { path: "/toc", to: TocPage } page TocPage { diff --git a/app/src/client/auth/LoginPage.tsx b/app/src/client/auth/LoginPage.tsx index 36e64a9..7a18095 100644 --- a/app/src/client/auth/LoginPage.tsx +++ b/app/src/client/auth/LoginPage.tsx @@ -2,11 +2,8 @@ import { createTheme } from '@stitches/react'; import { useAuth } from 'wasp/client/auth'; import { useHistory } from 'react-router-dom'; import { useEffect } from 'react'; -import { Link } from 'react-router-dom'; -// import { LoginForm } from '@wasp/auth/forms/Login'; import { AuthWrapper } from './authWrapper'; import Auth from './Auth'; -// import { State } from 'wasp/auth/forms/types'; import imgUrl from '../static/captn-logo-large.png'; export enum State { @@ -28,22 +25,6 @@ export default function Login() { return ( - {/*
- - Don't have an account yet?{' '} - - go to signup - - . - -
- - Forgot your password?{' '} - - reset it - - . - */}
); } diff --git a/app/src/client/auth/LoginSignupForm.tsx b/app/src/client/auth/LoginSignupForm.tsx index 0a24ea1..2b9a187 100644 --- a/app/src/client/auth/LoginSignupForm.tsx +++ b/app/src/client/auth/LoginSignupForm.tsx @@ -6,6 +6,7 @@ import { AuthContext } from './Auth'; import config from './configs/config'; import TosAndMarketingEmails from '../components/TosAndMarketingEmails'; import { State } from './Auth'; +import { Link } from 'wasp/client/router'; const SocialAuth = styled('div', { marginTop: '1.5rem', @@ -192,15 +193,23 @@ export const LoginSignupForm = ({
- {loginFlow === State.Login + {/* {loginFlow === State.Login ? "Don't have an account? " - : 'Already have an account? '} - {loginFlow === State.Login ? State.Signup : State.Login} - + */} + + {loginFlow === State.Login + ? "Don't have an account? " + : 'Already have an account? '} +
diff --git a/app/src/client/auth/SignupPage.tsx b/app/src/client/auth/SignupPage.tsx index 55ae84a..23965c9 100644 --- a/app/src/client/auth/SignupPage.tsx +++ b/app/src/client/auth/SignupPage.tsx @@ -1,20 +1,11 @@ -import { SignupForm } from "wasp/client/auth"; -import { Link } from 'react-router-dom'; import { AuthWrapper } from './authWrapper'; +import imgUrl from '../static/captn-logo-large.png'; +import { State, LoginForm } from './LoginPage'; export function Signup() { return ( - -
- - I already have an account ( - - go to login - - ). - -
+
); }