upadte: clean code + add next cloud
This commit is contained in:
@@ -18,19 +18,13 @@ export function useSecret() {
|
||||
setSecretVisible((v) => !v)
|
||||
}, [])
|
||||
|
||||
const clearSecretError = useCallback(() => {
|
||||
setSecretError(null)
|
||||
}, [])
|
||||
|
||||
return {
|
||||
secret,
|
||||
secretError,
|
||||
secretVisible,
|
||||
isSecretEmpty,
|
||||
setSecret,
|
||||
setSecretError,
|
||||
handleSecretChange,
|
||||
toggleSecretVisible,
|
||||
clearSecretError,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user