diff --git a/src/app/@authModal/(.)sign-in/page.tsx b/src/app/@authModal/(.)sign-in/page.tsx index 1c84498a..0ec96a4a 100644 --- a/src/app/@authModal/(.)sign-in/page.tsx +++ b/src/app/@authModal/(.)sign-in/page.tsx @@ -11,7 +11,7 @@ const page: FC = () => { - + diff --git a/src/app/@authModal/(.)sign-up/page.tsx b/src/app/@authModal/(.)sign-up/page.tsx index a33eb809..30f72425 100644 --- a/src/app/@authModal/(.)sign-up/page.tsx +++ b/src/app/@authModal/(.)sign-up/page.tsx @@ -13,7 +13,7 @@ const page: FC = ({}) => { - + diff --git a/src/components/SignIn.tsx b/src/components/SignIn.tsx index d935a9b8..f1f85097 100644 --- a/src/components/SignIn.tsx +++ b/src/components/SignIn.tsx @@ -1,8 +1,15 @@ +"use client"; + +import { FC } from 'react' import { Icons } from '@/components/Icons' import UserAuthForm from '@/components/UserAuthForm' import Link from 'next/link' -const SignIn = () => { +interface SignInProps { + isModal?: boolean; +} + +const SignIn: FC = ({ isModal = false }) => { return (
@@ -18,7 +25,9 @@ const SignIn = () => { New to Breaddit?{' '} + className='hover:text-brand text-sm underline underline-offset-4' + replace={isModal} + }> Sign Up

diff --git a/src/components/SignUp.tsx b/src/components/SignUp.tsx index a0057793..1c74635d 100644 --- a/src/components/SignUp.tsx +++ b/src/components/SignUp.tsx @@ -1,29 +1,38 @@ -import { Icons } from '@/components/Icons' -import UserAuthForm from '@/components/UserAuthForm' -import Link from 'next/link' +"use client"; -const SignUp = () => { +import { FC } from "react"; +import { Icons } from "@/components/Icons"; +import UserAuthForm from "@/components/UserAuthForm"; +import Link from "next/link"; + +interface SignUpProps { + isModal?: boolean; +} + +const SignUp: Fc = ({ isModal = false }) => { return ( -
-
- -

Sign Up

-

+

+
+ +

Sign Up

+

By continuing, you are setting up a Breadit account and agree to our User Agreement and Privacy Policy.

-

- Already a Breadditor?{' '} +

+ Already a Breadditor?{" "} + href="/sign-in" + className="hover:text-brand text-sm underline underline-offset-4" + replace={isModal} + > Sign in

- ) -} + ); +}; -export default SignUp +export default SignUp;