parent
e0108352c8
commit
713f643b1d
@ -0,0 +1,5 @@
|
|||||||
|
.input {
|
||||||
|
composes: input from 'Components/Form/TextInput.css';
|
||||||
|
|
||||||
|
font-family: $passwordFamily;
|
||||||
|
}
|
@ -1,13 +1,22 @@
|
|||||||
|
import PropTypes from 'prop-types';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import TextInput from './TextInput';
|
import TextInput from './TextInput';
|
||||||
|
import styles from './PasswordInput.css';
|
||||||
|
|
||||||
function PasswordInput(props) {
|
function PasswordInput(props) {
|
||||||
return (
|
return (
|
||||||
<TextInput
|
<TextInput
|
||||||
type="password"
|
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PasswordInput.propTypes = {
|
||||||
|
className: PropTypes.string.isRequired
|
||||||
|
};
|
||||||
|
|
||||||
|
PasswordInput.defaultProps = {
|
||||||
|
className: styles.input
|
||||||
|
};
|
||||||
|
|
||||||
export default PasswordInput;
|
export default PasswordInput;
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -1,5 +1,5 @@
|
|||||||
.namingInput {
|
.namingInput {
|
||||||
composes: text from 'Components/Form/TextInput.css';
|
composes: input from 'Components/Form/TextInput.css';
|
||||||
|
|
||||||
font-family: $monoSpaceFontFamily;
|
font-family: $monoSpaceFontFamily;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue