1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

user settings mechanism

This commit is contained in:
Fedor Katurov 2019-11-13 18:02:09 +07:00
parent 5fe0deca17
commit a90285a4ac
10 changed files with 162 additions and 4 deletions

View file

@ -30,7 +30,6 @@ type IProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
const Textarea = memo<IProps>(
({
value,
placeholder,
className,
minRows = 3,
@ -40,6 +39,7 @@ const Textarea = memo<IProps>(
title = '',
status = '',
seamless,
value,
...props
}) => {
const [rows, setRows] = useState(minRows || 1);
@ -97,7 +97,7 @@ const Textarea = memo<IProps>(
<div className={styles.input}>
<textarea
rows={rows}
value={value}
value={value || ''}
placeholder={placeholder}
className={classNames(styles.textarea, className)}
onChange={onInput}