-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feature 4/h captcha support with auth pages #8
base: main
Are you sure you want to change the base?
Conversation
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.
use kebab case for file naming
import { MailOutlined } from "@ant-design/icons"; | ||
import HCaptcha from "@hcaptcha/react-hcaptcha"; | ||
|
||
type FormValues = { |
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.
move this in auth module types and export it to be use where its need
|
||
return ( | ||
<div> | ||
<Form<FormValues> onFinish={onFinish}> |
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.
why using this <FormValues>
tag inside <Form>
tag?
import React from "react"; | ||
import { useParams } from "react-router-dom"; | ||
|
||
type FormValues = { |
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.
this also move in to auth module types
|
||
return ( | ||
<div> | ||
<Form<FormValues> onFinish={onFinish} layout="vertical"> |
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.
same here using <FormValues>
tag as above
<Form.Item | ||
name="otp" | ||
label="Otp" | ||
rules={[{ required: true, message: "Please enter a password" }]} |
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.
correct message as it for otp
Resolves #4