1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-05-01 23:56:41 +07:00

eslint fix

This commit is contained in:
muerwre 2019-08-09 12:23:07 +07:00
parent dfaac877fb
commit fa4d51360b
81 changed files with 741 additions and 972 deletions

View file

@ -2,12 +2,12 @@ import * as React from 'react';
import * as styles from './styles.scss';
interface ITextInputProps {
type?: 'text' | 'password',
placeholder?: string,
label?: string,
value?: string,
type?: 'text' | 'password';
placeholder?: string;
label?: string;
value?: string;
onChange: React.ChangeEventHandler,
onChange: React.ChangeEventHandler;
}
export const TextInput: React.FunctionComponent<ITextInputProps> = ({
@ -15,15 +15,15 @@ export const TextInput: React.FunctionComponent<ITextInputProps> = ({
placeholder = '',
label,
onChange = () => {},
value='',
value = '',
}) => (
<div
className={styles.wrapper}
>
<div className={styles.container}>
{
label &&
<div className={styles.label}>{label}</div>
label
&& <div className={styles.label}>{label}</div>
}
<input
placeholder={placeholder}