Fix AddessInput icon position (#3132)
This commit is contained in:
parent
5bd9814470
commit
7a804d8b01
@ -26,8 +26,16 @@
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
|
||||
.icon {
|
||||
.icon,
|
||||
.iconDisabled {
|
||||
position: absolute;
|
||||
top: 35px;
|
||||
}
|
||||
|
||||
.icon {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.iconDisabled {
|
||||
left: 24px;
|
||||
}
|
||||
|
@ -69,14 +69,14 @@ class InputAddress extends Component {
|
||||
}
|
||||
|
||||
renderIcon () {
|
||||
const { value } = this.props;
|
||||
const { value, disabled } = this.props;
|
||||
|
||||
if (!value || !value.length || !util.isAddressValid(value)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={ styles.icon }>
|
||||
<div className={ disabled ? styles.iconDisabled : styles.icon }>
|
||||
<IdentityIcon
|
||||
inline center
|
||||
address={ value } />
|
||||
|
Loading…
Reference in New Issue
Block a user