mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-26 00:48:35 +00:00
Added placeholder for input
This commit is contained in:
parent
81ccc8e347
commit
ccd6e789bc
@ -47,9 +47,10 @@ const StyledInput = styled.input`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const 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
|
<StyledInput
|
||||||
|
placeholder={placeholder}
|
||||||
type={type}
|
type={type}
|
||||||
autoComplete={autoComplete}
|
autoComplete={autoComplete}
|
||||||
autoCorrect={autoCorrect}
|
autoCorrect={autoCorrect}
|
||||||
@ -64,6 +65,7 @@ const Input = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
Input.propTypes = {
|
Input.propTypes = {
|
||||||
|
placeholder: PropTypes.string,
|
||||||
type: PropTypes.string,
|
type: PropTypes.string,
|
||||||
autoComplete: PropTypes.string,
|
autoComplete: PropTypes.string,
|
||||||
autoCorrect: PropTypes.string,
|
autoCorrect: PropTypes.string,
|
||||||
|
Loading…
Reference in New Issue
Block a user