mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
added sample settings page
This commit is contained in:
parent
7a6a44cccf
commit
100c4c138a
29 changed files with 527 additions and 113 deletions
|
@ -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}
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
.suffix {
|
||||
.suffix, .prefix{
|
||||
fill: currentColor;
|
||||
stroke: currentColor;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue