-
+
diff --git a/src/components/common/ModalAuthenticate/components/FormRegister/FormRegister.module.scss b/src/components/common/ModalAuthenticate/components/FormRegister/FormRegister.module.scss
index 2201cc01c..ed18090d6 100644
--- a/src/components/common/ModalAuthenticate/components/FormRegister/FormRegister.module.scss
+++ b/src/components/common/ModalAuthenticate/components/FormRegister/FormRegister.module.scss
@@ -6,10 +6,9 @@
transform: none;
}
.passwordNote {
- @apply text-center caption;
+ @apply text-center caption text-label;
margin-top: 0.8rem;
}
-
.bottom {
@apply flex justify-between items-center w-full;
margin: 4rem auto;
diff --git a/src/components/common/ModalAuthenticate/components/FormRegister/FormRegister.tsx b/src/components/common/ModalAuthenticate/components/FormRegister/FormRegister.tsx
index 608ffc0b6..8b66449b1 100644
--- a/src/components/common/ModalAuthenticate/components/FormRegister/FormRegister.tsx
+++ b/src/components/common/ModalAuthenticate/components/FormRegister/FormRegister.tsx
@@ -1,9 +1,10 @@
-import React from 'react'
+import React, { useEffect, useRef } from 'react'
import { ButtonCommon, Inputcommon } from 'src/components/common'
import s from '../FormAuthen.module.scss'
import styles from './FormRegister.module.scss'
import SocialAuthen from '../SocialAuthen/SocialAuthen'
import classNames from 'classnames'
+import { CustomInputCommon } from 'src/utils/type.utils'
interface Props {
isHide: boolean,
@@ -11,6 +12,14 @@ interface Props {
}
const FormRegister = ({ onSwitch, isHide }: Props) => {
+ const emailRef = useRef(null)
+
+ useEffect(() => {
+ if (!isHide) {
+ emailRef.current?.focus()
+ }
+ }, [isHide])
+
return (