|
|
@@ -28,7 +28,7 @@ class InputWidget extends Component<Props, OwnState> { |
|
|
|
{ this.props.icon && <IonIcon className={styles.leftIcon} icon={this.props.icon}></IonIcon> } |
|
|
|
|
|
|
|
{ this.props.type === 'TEXT' && <input type='text' placeholder={this.props.placeholder} /> } |
|
|
|
{ this.props.type === 'PASSWORD' && <input type='password' placeholder={this.props.placeholder} /> } |
|
|
|
{ this.props.type === 'PASSWORD' && <input type={this.state.showPassword ? 'text' : 'password'} placeholder={this.props.placeholder} /> } |
|
|
|
|
|
|
|
{ this.props.type === 'PASSWORD' && |
|
|
|
<IonButton className={styles.eyeButton} onClick={e => this.setState({ showPassword: !this.state.showPassword })}> |
|
|
|