This commit is contained in:
mgabdev
2020-03-06 23:53:28 -05:00
parent da3d0c3462
commit 557c6470f5
41 changed files with 1181 additions and 1106 deletions

View File

@@ -1,3 +1,4 @@
import { Fragment } from 'react'
import classNames from 'classnames/bind'
import Icon from './icon'
import Text from './text'
@@ -16,6 +17,7 @@ export default class Input extends PureComponent {
onBlur: PropTypes.func,
onClear: PropTypes.func,
title: PropTypes.string,
small: PropTypes.bool,
}
render() {
@@ -29,7 +31,8 @@ export default class Input extends PureComponent {
onFocus,
onBlur,
onClear,
title
title,
small
} = this.props
const inputClasses = cx({
@@ -48,7 +51,7 @@ export default class Input extends PureComponent {
})
return (
<div>
<Fragment>
{
!!title &&
<div className={[_s.default, _s.marginBottom10PX, _s.paddingLeft15PX].join(' ')}>
@@ -81,7 +84,7 @@ export default class Input extends PureComponent {
</div>
}
</div>
</div>
</Fragment>
)
}
}