1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-25 00:18:07 +00:00

Added placeholder for input

This commit is contained in:
Vladimir Volek 2018-08-30 14:52:04 +02:00
parent 81ccc8e347
commit ccd6e789bc

View File

@ -47,9 +47,10 @@ const StyledInput = styled.input`
`;
const Input = ({
type, autoComplete, autoCorrect, autoCapitalize, spellCheck, value, onChange, isValid, isWarning, isError,
type, autoComplete, autoCorrect, autoCapitalize, spellCheck, value, onChange, isValid, isWarning, isError, placeholder,
}) => (
<StyledInput
placeholder={placeholder}
type={type}
autoComplete={autoComplete}
autoCorrect={autoCorrect}
@ -64,6 +65,7 @@ const Input = ({
);
Input.propTypes = {
placeholder: PropTypes.string,
type: PropTypes.string,
autoComplete: PropTypes.string,
autoCorrect: PropTypes.string,