Loading web/src/hooks/usePasswordVisibility.tsx 0 → 100644 +20 −0 Original line number Diff line number Diff line import { useState } from "react" export const usePasswoordVisibility = () => { const [values, setValues] = useState({ showPassword: false, }); const handleClickShowPassword = () => { setValues({ ...values, showPassword: !values.showPassword, }); }; const handleMouseDownPassword = (event: any) => { event.preventDefault(); }; return {values, handleClickShowPassword, handleMouseDownPassword}; } No newline at end of file Loading
web/src/hooks/usePasswordVisibility.tsx 0 → 100644 +20 −0 Original line number Diff line number Diff line import { useState } from "react" export const usePasswoordVisibility = () => { const [values, setValues] = useState({ showPassword: false, }); const handleClickShowPassword = () => { setValues({ ...values, showPassword: !values.showPassword, }); }; const handleMouseDownPassword = (event: any) => { event.preventDefault(); }; return {values, handleClickShowPassword, handleMouseDownPassword}; } No newline at end of file