Commit a76888b1 authored by Mai Thanh Cong's avatar Mai Thanh Cong

change text in signup

parent 367360ca
#config #config
REACT_APP_AWS_USER_POOL_ID = us-east-1_c1uad9xyt REACT_APP_AWS_USER_POOL_ID = us-east-1_p1wF07t7u
REACT_APP_AWS_CLIENT_ID = 4isv4m9h8q29b7a8m87gkath31 REACT_APP_AWS_CLIENT_ID = 42v8g8dtbjgvnutg4t7sjp604m
REACT_APP_BASE_URL_AQBITS_TRACE_CODE = https://f26svz60d8.execute-api.us-east-1.amazonaws.com/api REACT_APP_BASE_URL_AQBITS_TRACE_CODE = https://f26svz60d8.execute-api.us-east-1.amazonaws.com/api
\ No newline at end of file
...@@ -33,7 +33,7 @@ export const authServices = { ...@@ -33,7 +33,7 @@ export const authServices = {
const dataRole = { const dataRole = {
Name: "custom:role", Name: "custom:role",
Value: "USER", Value: "ADMIN",
}; };
const attributeEmail = new CognitoUserAttribute(dataEmail); const attributeEmail = new CognitoUserAttribute(dataEmail);
const attributePhoneNumber = new CognitoUserAttribute(dataPhoneNumber); const attributePhoneNumber = new CognitoUserAttribute(dataPhoneNumber);
......
...@@ -111,7 +111,7 @@ export default () => { ...@@ -111,7 +111,7 @@ export default () => {
value={email} value={email}
onChange={(e) => setEmail(e.target.value)} onChange={(e) => setEmail(e.target.value)}
invalid={validEmail} /> invalid={validEmail} />
<FormFeedback className="bg-transparent shadow-0">{validEmail ? "Please input valid email" : false}</FormFeedback> <FormFeedback className="bg-transparent shadow-0">{validEmail ? "Không đúng định dạng email" : false}</FormFeedback>
</InputGroup> </InputGroup>
</FormGroup> </FormGroup>
<div className="text-center"> <div className="text-center">
......
...@@ -128,9 +128,15 @@ export default () => { ...@@ -128,9 +128,15 @@ export default () => {
<i className="ni ni-email-83" /> <i className="ni ni-email-83" />
</InputGroupText> </InputGroupText>
</InputGroupAddon> </InputGroupAddon>
<Input placeholder="Example@company.com" type="text" <Input
value={email} onChange={(e) => setEmail(e.target.value)} /> required
<FormFeedback invalid>{validEmail ? "Không đúng định dạng email" : ""}</FormFeedback> placeholder="Example@company.com"
type="text"
value={email}
onChange={(e) => setEmail(e.target.value)}
invalid={validEmail}
/>
<FormFeedback className="bg-transparent shadow-0">{validEmail ? "Không đúng định dạng email" : ""}</FormFeedback>
</InputGroup> </InputGroup>
</FormGroup> </FormGroup>
<FormGroup id="password"> <FormGroup id="password">
...@@ -141,6 +147,7 @@ export default () => { ...@@ -141,6 +147,7 @@ export default () => {
</InputGroupText> </InputGroupText>
</InputGroupAddon> </InputGroupAddon>
<Input <Input
required
placeholder="Mật khẩu" placeholder="Mật khẩu"
type="password" type="password"
autoComplete="off" autoComplete="off"
......
...@@ -106,7 +106,7 @@ export default () => { ...@@ -106,7 +106,7 @@ export default () => {
<Col lg={5}> <Col lg={5}>
<Card className="bg-secondary shadow border-0"> <Card className="bg-secondary shadow border-0">
<CardHeader> <CardHeader>
<h5 className="text-center text-primary">Sign up</h5> <h5 className="text-center text-primary">Đăng kí tài khon</h5>
</CardHeader> </CardHeader>
<CardBody className="px-lg-5 py-lg-5"> <CardBody className="px-lg-5 py-lg-5">
<Form role="form" onSubmit={onHandleSignUp}> <Form role="form" onSubmit={onHandleSignUp}>
...@@ -119,12 +119,13 @@ export default () => { ...@@ -119,12 +119,13 @@ export default () => {
</InputGroupText> </InputGroupText>
</InputGroupAddon> </InputGroupAddon>
<Input <Input
placeholder="Email" required
type="text" placeholder="Example@company.com"
type="email"
value={email} value={email}
onChange={(e) => setEmail(e.target.value)} onChange={(e) => setEmail(e.target.value)}
invalid={validEmail} /> invalid={validEmail} />
<FormFeedback className="bg-transparent shadow-0">{validEmail ? "Please input validate email" : false}</FormFeedback> <FormFeedback className="bg-transparent shadow-0">{validEmail ? "Không đúng định dạng email" : false}</FormFeedback>
</InputGroup> </InputGroup>
</FormGroup> </FormGroup>
...@@ -136,12 +137,17 @@ export default () => { ...@@ -136,12 +137,17 @@ export default () => {
</InputGroupText> </InputGroupText>
</InputGroupAddon> </InputGroupAddon>
<Input <Input
placeholder="Password" required
placeholder="Mật khẩu"
type="password" type="password"
autoComplete="off" autoComplete="off"
value={password} value={password}
onChange={(e) => setPassword(e.target.value)} /> onChange={(e) => setPassword(e.target.value)}
invalid={checkPassword}
/>
<FormFeedback>{checkPassword ? "Mật khẩu không trùng nhau" : false}</FormFeedback>
</InputGroup> </InputGroup>
</FormGroup> </FormGroup>
<FormGroup id="confirmPassword"> <FormGroup id="confirmPassword">
...@@ -152,13 +158,15 @@ export default () => { ...@@ -152,13 +158,15 @@ export default () => {
</InputGroupText> </InputGroupText>
</InputGroupAddon> </InputGroupAddon>
<Input <Input
placeholder="Confirm Password" required
placeholder="Xác nhận mật khẩu"
type="password" type="password"
autoComplete="off" autoComplete="off"
value={confirmPassword} value={confirmPassword}
onChange={(e) => setConfirmPassword(e.target.value)} onChange={(e) => setConfirmPassword(e.target.value)}
invalid={checkPassword}
/> />
<FormFeedback>{checkPassword ? "Please input match password" : false}</FormFeedback> <FormFeedback>{checkPassword ? "Mật khẩu không trùng nhau" : false}</FormFeedback>
</InputGroup> </InputGroup>
</FormGroup> </FormGroup>
<div className="text-center"> <div className="text-center">
...@@ -167,7 +175,7 @@ export default () => { ...@@ -167,7 +175,7 @@ export default () => {
color="primary" color="primary"
type="submit" type="submit"
> >
Create account To tài khon
</Button> </Button>
</div> </div>
</Form> </Form>
...@@ -176,12 +184,12 @@ export default () => { ...@@ -176,12 +184,12 @@ export default () => {
<Row className="mt-3"> <Row className="mt-3">
<Col className="d-flex justify-content-start align-items-center"> <Col className="d-flex justify-content-start align-items-center">
<small className="text-light mr-2"> <small className="text-light mr-2">
Already have an account? Bn đã có tài khon?
</small> </small>
<Link <Link
to={Routes.Signin.path}> to={Routes.Signin.path}>
<small className="text-primary"> <small className="text-primary">
Login Đăng nhp
</small> </small>
</Link> </Link>
</Col> </Col>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment