|
|
@ -22,9 +22,7 @@ export class SessionInput extends React.PureComponent<Props, State> {
|
|
|
|
super(props);
|
|
|
|
super(props);
|
|
|
|
|
|
|
|
|
|
|
|
this.updateInputValue = this.updateInputValue.bind(this);
|
|
|
|
this.updateInputValue = this.updateInputValue.bind(this);
|
|
|
|
this.renderEnableShowHideButton = this.renderEnableShowHideButton.bind(
|
|
|
|
this.renderShowHideButton = this.renderShowHideButton.bind(this);
|
|
|
|
this
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.state = {
|
|
|
|
this.state = {
|
|
|
|
inputValue: '',
|
|
|
|
inputValue: '',
|
|
|
@ -63,15 +61,14 @@ export class SessionInput extends React.PureComponent<Props, State> {
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
{this.renderEnableShowHideButton(enableShowHide)}
|
|
|
|
{enableShowHide && this.renderShowHideButton()}
|
|
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
<hr />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private renderEnableShowHideButton(enableShowHide: boolean | undefined) {
|
|
|
|
private renderShowHideButton() {
|
|
|
|
if (enableShowHide) {
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<SessionIconButton
|
|
|
|
<SessionIconButton
|
|
|
|
iconType={SessionIconType.Eye}
|
|
|
|
iconType={SessionIconType.Eye}
|
|
|
@ -86,9 +83,6 @@ export class SessionInput extends React.PureComponent<Props, State> {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return undefined;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private updateInputValue(e: any) {
|
|
|
|
private updateInputValue(e: any) {
|
|
|
|
e.preventDefault();
|
|
|
|
e.preventDefault();
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|