diff --git a/app/(auth)/signin/components/signin-footer.tsx b/app/(auth)/signin/components/signin-footer.tsx index 45f60c9..23ac62d 100644 --- a/app/(auth)/signin/components/signin-footer.tsx +++ b/app/(auth)/signin/components/signin-footer.tsx @@ -17,7 +17,7 @@ export const SignInFooter = () => { fontSize="sm" color="primary.800" fontWeight="semibold" - href="/signup/email" + href="/signup" > Sign Up diff --git a/app/(auth)/signup/email/action/index.ts b/app/(auth)/signup/action/index.ts similarity index 88% rename from app/(auth)/signup/email/action/index.ts rename to app/(auth)/signup/action/index.ts index fbcea14..c4ff932 100644 --- a/app/(auth)/signup/email/action/index.ts +++ b/app/(auth)/signup/action/index.ts @@ -1,7 +1,7 @@ 'use server' import { cookies } from 'next/headers' import { redirect } from 'next/navigation' -import type { SignUpSchema } from '@/(auth)/signup/email/schema' +import type { SignUpSchema } from '@/(auth)/signup/schema' import { createClient } from '@/(auth)/supabase/with-cookie' export const signUp = async ({ diff --git a/app/(auth)/signup/email/components/index.tsx b/app/(auth)/signup/components/index.tsx similarity index 100% rename from app/(auth)/signup/email/components/index.tsx rename to app/(auth)/signup/components/index.tsx diff --git a/app/(auth)/signup/email/components/signup-footer.tsx b/app/(auth)/signup/components/signup-footer.tsx similarity index 76% rename from app/(auth)/signup/email/components/signup-footer.tsx rename to app/(auth)/signup/components/signup-footer.tsx index debdb08..c9bec29 100644 --- a/app/(auth)/signup/email/components/signup-footer.tsx +++ b/app/(auth)/signup/components/signup-footer.tsx @@ -29,12 +29,13 @@ export const SignUpFooter = () => { color="gray.600" mt={{ base: '38px', md: '32px' }} > - By signing up, you agree to{' '} - + By signing up, you agree to + {/* TODO Add terms of policy page */} + Terms of Service {' '} - and{' '} - + and {/* TODO Add terms of privacy policy page */} + Privacy Policy {' '} . diff --git a/app/(auth)/signup/email/components/signup-form.tsx b/app/(auth)/signup/components/signup-form.tsx similarity index 96% rename from app/(auth)/signup/email/components/signup-form.tsx rename to app/(auth)/signup/components/signup-form.tsx index f38d4f9..4ca9680 100644 --- a/app/(auth)/signup/email/components/signup-form.tsx +++ b/app/(auth)/signup/components/signup-form.tsx @@ -9,8 +9,8 @@ import { useToast, useBoolean } from '@chakra-ui/react' -import { signUp } from '@/(auth)/signup/email/action' -import { signUpResolver, SignUpSchema } from '@/(auth)/signup/email/schema' +import { signUp } from '@/(auth)/signup/action' +import { signUpResolver, SignUpSchema } from '@/(auth)/signup/schema' import { PrimaryButton } from '@/components/button' import { InputForm } from '@/components/input' diff --git a/app/(auth)/signup/email/components/signup-header.tsx b/app/(auth)/signup/components/signup-header.tsx similarity index 100% rename from app/(auth)/signup/email/components/signup-header.tsx rename to app/(auth)/signup/components/signup-header.tsx diff --git a/app/(auth)/signup/email/page.tsx b/app/(auth)/signup/email/page.tsx deleted file mode 100644 index 4398119..0000000 --- a/app/(auth)/signup/email/page.tsx +++ /dev/null @@ -1,41 +0,0 @@ -'use client' - -import { Box, Card, LightMode } from '@chakra-ui/react' -import { - SignUpHeader, - SignUpForm, - SignUpFooter -} from '@/(auth)/signup/email/components' - -export default function SignUp() { - return ( - - - - - - - - - - ) -} diff --git a/app/(auth)/signup/page.tsx b/app/(auth)/signup/page.tsx index 8c116c1..7bbb96a 100644 --- a/app/(auth)/signup/page.tsx +++ b/app/(auth)/signup/page.tsx @@ -1,23 +1,41 @@ -import { Heading, List, ListItem } from '@chakra-ui/react' -import Link from 'next/link' -import { SecondaryButton } from '@/components/button' +'use client' + +import { Box, Card, LightMode } from '@chakra-ui/react' +import { + SignUpHeader, + SignUpForm, + SignUpFooter +} from '@/(auth)/signup/components' export default function SignUp() { return ( - <> - Welcome! - Create an Account - - - - Sign up with Email - - - - Already have an account? - - Sign in to your account? - - + + + + + + + + + ) } diff --git a/app/(auth)/signup/email/schema.ts b/app/(auth)/signup/schema.ts similarity index 100% rename from app/(auth)/signup/email/schema.ts rename to app/(auth)/signup/schema.ts