From 3572dbdf81a137f8ff40fd573448aa8420e46d6c Mon Sep 17 00:00:00 2001 From: Afonso Santos Date: Thu, 23 Nov 2023 09:07:43 +0000 Subject: [PATCH 01/13] fix nomenclature in register pag --- .../components/Signup/{index.js => index.tsx} | 63 ++++++++++++------- 1 file changed, 40 insertions(+), 23 deletions(-) rename apps/app/components/Signup/{index.js => index.tsx} (66%) diff --git a/apps/app/components/Signup/index.js b/apps/app/components/Signup/index.tsx similarity index 66% rename from apps/app/components/Signup/index.js rename to apps/app/components/Signup/index.tsx index 8bb22d9b..fdf89ebd 100644 --- a/apps/app/components/Signup/index.js +++ b/apps/app/components/Signup/index.tsx @@ -1,6 +1,7 @@ import { useState } from "react"; import Link from "next/link"; import { + Space, Button, Checkbox, Form, @@ -15,22 +16,23 @@ import { MailOutlined, } from "@ant-design/icons"; import { useAuth } from "@coderdojobraga/ui"; -import Koi from "~/components/Koi"; import styles from "./style.module.css"; + function Signup() { const { Title, Text } = Typography; const { errors, isLoading, sign_up } = useAuth(); const [size, setSize] = useState(""); - const handleSizeChange = (e) => { + const handleSizeChange = (e: any) => { setSize(e.target.value); }; - const onFinish = ({ email, password, role }) => { + const onFinish = ({ email, password, role }: any) => { sign_up({ email, password, role }); + }; return ( @@ -74,25 +76,40 @@ function Signup() { ]} > - - Guardião - - - Mentor - - - - Ninja   - - - + + + Guardião + + + + + Mentor + + + + + + Ninja + + + + + @@ -106,12 +123,12 @@ function Signup() { value ? Promise.resolve() : Promise.reject( - "É necessário concordar com os termos e condições" - ), + "É necessário concordar com os termos e condições" + ), }, ]} > - + Eu li e aceito a{" "} @@ -124,7 +141,7 @@ function Signup() {