From ef59ab168884556211551fd527e8d37baf48c8dc Mon Sep 17 00:00:00 2001 From: Timur Ercan Date: Fri, 13 Jan 2023 17:17:50 +0100 Subject: [PATCH] qoc, text --- apps/web/components/signup.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/web/components/signup.tsx b/apps/web/components/signup.tsx index d0e2192b7..8c45d014e 100644 --- a/apps/web/components/signup.tsx +++ b/apps/web/components/signup.tsx @@ -2,6 +2,7 @@ import { XCircleIcon } from "@heroicons/react/24/outline"; import { signIn } from "next-auth/react"; import Link from "next/link"; import { FormProvider, SubmitHandler, useForm } from "react-hook-form"; +import { Toast, Toaster } from "react-hot-toast"; import Logo from "./logo"; @@ -28,7 +29,7 @@ export default function Signup() { }; const signUp: SubmitHandler = async (data) => { - methods.clearErrors(); + // methods.clearErrors(); await fetch("/api/auth/signup", { body: JSON.stringify({ ...data, @@ -152,7 +153,7 @@ export default function Signup() { minLength: { value: 7, message: - "Password has to be at least 7 characters long.", + "Your password has to be at least 7 characters long.", }, })} id="password" @@ -201,6 +202,7 @@ export default function Signup() { + ); }