-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: nomenclature in register page #212
Merged
Merged
Changes from 10 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3572dbd
fix nomenclature in register pag
Afonso-santos 6f1b9ef
correct some request
Afonso-santos 2927714
correct some request
Afonso-santos 686cf53
correct React Hook
Afonso-santos 1ceaa82
Request changes
Afonso-santos 208d594
Correct some react hook
Afonso-santos 6ada13e
Request changes
Afonso-santos f00d823
Run formater
Afonso-santos dd1ee52
Correct some warming
Afonso-santos c8fd4d4
Fix:email verification
Afonso-santos e7d74a7
Request changes and run format
Afonso-santos e28b5af
Run format and lint
Afonso-santos 1e915f7
correct some misunderstandings
Afonso-santos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -6,6 +6,7 @@ import { | |||||||||||
Form, | ||||||||||||
Input, | ||||||||||||
Radio, | ||||||||||||
Space, | ||||||||||||
Tooltip, | ||||||||||||
Typography, | ||||||||||||
} from "antd"; | ||||||||||||
|
@@ -15,21 +16,19 @@ 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 }); | ||||||||||||
}; | ||||||||||||
|
||||||||||||
|
@@ -73,26 +72,34 @@ function Signup() { | |||||||||||
}, | ||||||||||||
]} | ||||||||||||
> | ||||||||||||
<Radio.Group | ||||||||||||
className={styles.select} | ||||||||||||
value={size} | ||||||||||||
onChange={handleSizeChange} | ||||||||||||
> | ||||||||||||
<Radio.Button className={styles.option} value="guardian"> | ||||||||||||
Guardião | ||||||||||||
</Radio.Button> | ||||||||||||
<Radio.Button className={styles.option} value="mentor"> | ||||||||||||
Mentor | ||||||||||||
</Radio.Button> | ||||||||||||
<Tooltip | ||||||||||||
className={styles.option} | ||||||||||||
title="Inicia sessão como Guardião para inscreveres um Ninja" | ||||||||||||
> | ||||||||||||
<Radio.Button disabled> | ||||||||||||
Ninja   | ||||||||||||
<InfoCircleOutlined /> | ||||||||||||
</Radio.Button> | ||||||||||||
</Tooltip> | ||||||||||||
<Radio.Group value={size} onChange={handleSizeChange}> | ||||||||||||
<Space direction="vertical"> | ||||||||||||
<Radio value="guardian" className="mb-2"> | ||||||||||||
Guardião | ||||||||||||
<label id="mentor-description" className="ml-2 text-gray-500"> | ||||||||||||
Tutor legal da criança. | ||||||||||||
</label> | ||||||||||||
</Radio> | ||||||||||||
|
||||||||||||
<Radio value="mentor" className="mb-2"> | ||||||||||||
Mentor | ||||||||||||
<label id="mentor-description" className="ml-6 text-gray-500"> | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
Voluntário na organização. | ||||||||||||
</label> | ||||||||||||
</Radio> | ||||||||||||
<Tooltip | ||||||||||||
className={styles.option} | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
title="Inicia sessão como Guardião para inscreveres um Ninja" | ||||||||||||
> | ||||||||||||
<Radio disabled value="1"> | ||||||||||||
Ninja | ||||||||||||
<label id="mentor-description" className="ml-8 text-gray-500"> | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
Criança participante. | ||||||||||||
</label> | ||||||||||||
<InfoCircleOutlined /> | ||||||||||||
</Radio> | ||||||||||||
</Tooltip> | ||||||||||||
</Space> | ||||||||||||
</Radio.Group> | ||||||||||||
</Form.Item> | ||||||||||||
|
||||||||||||
|
@@ -124,7 +131,7 @@ function Signup() { | |||||||||||
<Form.Item | ||||||||||||
className={styles.button} | ||||||||||||
validateStatus={errors && "error"} | ||||||||||||
help={errors?.email && "Email já registado"} | ||||||||||||
help={errors || "Email já registado"} | ||||||||||||
> | ||||||||||||
<Button | ||||||||||||
type="primary" | ||||||||||||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
NEXT_PUBLIC_API_URL=http://localhost:4000 | ||
WEB_URL=http://localhost:3000 | ||
BLOG_URL=http://localhost:3001 | ||
APP_URL=http://localhost:3002 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.