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

clearing search

This commit is contained in:
Fedor Katurov 2020-04-18 18:46:51 +07:00
parent 9498c7b7a0
commit 47adbdf6f0
13 changed files with 215 additions and 195 deletions

View file

@ -16,6 +16,7 @@ const InputText: FC<IInputTextProps> = ({
value = '',
onRef,
is_loading,
after,
...props
}) => {
const [focused, setFocused] = useState(false);
@ -61,6 +62,7 @@ const InputText: FC<IInputTextProps> = ({
<div className={classNames(styles.success_icon, { active: status === 'success' })}>
<Icon icon="check" size={20} />
</div>
<div className={classNames(styles.error_icon, { active: status === 'error' || !!error })}>
<Icon icon="close" size={20} />
</div>
@ -83,6 +85,8 @@ const InputText: FC<IInputTextProps> = ({
<span>{error}</span>
</div>
)}
{!!after && <div className={styles.after}>{after}</div>}
</div>
);
};