Compare commits
1 commit
8b2452abe4
...
8ffe7850ad
Author | SHA1 | Date | |
---|---|---|---|
8ffe7850ad |
1 changed files with 3 additions and 1 deletions
|
@ -32,7 +32,9 @@ export default function LabeledInput({
|
||||||
error?: string;
|
error?: string;
|
||||||
} & React.InputHTMLAttributes<HTMLInputElement>) {
|
} & React.InputHTMLAttributes<HTMLInputElement>) {
|
||||||
const [passwordVisible, setPasswordVisible] = React.useState(false);
|
const [passwordVisible, setPasswordVisible] = React.useState(false);
|
||||||
const [inputValue, setInputValue] = React.useState(value || defaultValue || '');
|
const [inputValue, setInputValue] = React.useState(
|
||||||
|
value || defaultValue || '',
|
||||||
|
);
|
||||||
|
|
||||||
const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||||
setInputValue(e.target.value);
|
setInputValue(e.target.value);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue