summaryrefslogtreecommitdiff
path: root/src/lib/auth/hooks/useRegister.js
diff options
context:
space:
mode:
authorHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-04-03 09:22:55 +0700
committerHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-04-03 09:22:55 +0700
commit3ab2c01595b12534b68064d673f1c50c96d3450c (patch)
tree98f7ad701ad5ff8a542ea68e8c9571cc4431806a /src/lib/auth/hooks/useRegister.js
parent028d3a21b17ea56f959c2a42b97353ef58e3eac4 (diff)
tnd
Diffstat (limited to 'src/lib/auth/hooks/useRegister.js')
-rw-r--r--src/lib/auth/hooks/useRegister.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/auth/hooks/useRegister.js b/src/lib/auth/hooks/useRegister.js
index 7642a666..2375cf19 100644
--- a/src/lib/auth/hooks/useRegister.js
+++ b/src/lib/auth/hooks/useRegister.js
@@ -6,6 +6,7 @@ const useRegister = () => {
const [isLoading, setIsLoading] = useState(false)
const [alert, setAlert] = useState(null)
const [isValid, setIsValid] = useState(false)
+ const [tnd, setTnd] = useState(false)
const fullnameRef = useRef(null)
const emailRef = useRef(null)
@@ -73,7 +74,9 @@ const useRegister = () => {
companyNameRef,
fullnameRef,
emailRef,
- passwordRef
+ passwordRef,
+ tnd,
+ setTnd
}
}