Fix AddessInput icon position (#3132)

This commit is contained in:
Jaco Greeff 2016-11-03 16:10:40 +01:00 committed by Gav Wood
parent 5bd9814470
commit 7a804d8b01
2 changed files with 11 additions and 3 deletions

View File

@ -26,8 +26,16 @@
padding-left: 0 !important; padding-left: 0 !important;
} }
.icon { .icon,
.iconDisabled {
position: absolute; position: absolute;
top: 35px; top: 35px;
}
.icon {
left: 0;
}
.iconDisabled {
left: 24px; left: 24px;
} }

View File

@ -69,14 +69,14 @@ class InputAddress extends Component {
} }
renderIcon () { renderIcon () {
const { value } = this.props; const { value, disabled } = this.props;
if (!value || !value.length || !util.isAddressValid(value)) { if (!value || !value.length || !util.isAddressValid(value)) {
return null; return null;
} }
return ( return (
<div className={ styles.icon }> <div className={ disabled ? styles.iconDisabled : styles.icon }>
<IdentityIcon <IdentityIcon
inline center inline center
address={ value } /> address={ value } />