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

added sample settings page

This commit is contained in:
Fedor Katurov 2022-03-25 20:52:39 +07:00
parent 7a6a44cccf
commit 100c4c138a
29 changed files with 527 additions and 113 deletions

View file

@ -18,6 +18,7 @@ const InputText: FC<IInputTextProps> = ({
error,
value = '',
suffix,
prefix,
...props
}) => {
const { focused, onFocus, onBlur } = useFocusEvent();
@ -43,6 +44,8 @@ const InputText: FC<IInputTextProps> = ({
return (
<InputWrapper title={title} error={translatedError} focused={focused} notEmpty={!!value}>
<div className={classNames(styles.input, { [styles.has_error]: !!error })}>
{!!prefix && <div className={styles.prefix}>{prefix}</div>}
<input
{...props}
onFocus={onFocus}