Add API Token handlers

This commit is contained in:
Hristo Nedelkov 2023-09-22 15:25:18 +03:00
parent 7946fa393a
commit dedf4d3012
1 changed files with 6 additions and 2 deletions

View File

@ -19,8 +19,11 @@ const ConnectExistingInstance = () => {
const isPairing = false
const [encryptedPassword, setEncryptedPassword] = useState('')
const changeSetIsAwaitingPairing = (result: boolean) => {
setIsAwaitingPairing(result)
const changeEncryptedPasswordHandler = (value: string) => {
setEncryptedPassword(value)
}
const clearEncryptedPasswordHandler = () => {
setEncryptedPassword('')
}
return (
<PageWrapperShadow rightImageSrc="./background-images/day-night-bg.png" rightImageLogo={true}>
@ -65,6 +68,7 @@ const ConnectExistingInstance = () => {
size={16}
color="#A1ABBD"
style={{ cursor: 'pointer' }}
onClick={clearEncryptedPasswordHandler}
/>
}
value={encryptedPassword}