hide registration subtitle and fix enableShowHide in SessionInput

pull/691/head
Audric Ackermann 6 years ago
parent e17e93ef84
commit e3360b1978

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

@ -19,7 +19,7 @@ export class SessionRegistrationView extends React.Component<Props> {
<div className="session-content">
<div id="error" className="collapse" />
<div className="session-content-accent">
<AccentText showSubtitle={showSubtitle || true} />
<AccentText showSubtitle={showSubtitle} />
</div>
<div className="session-content-registration">
<RegistrationTabs />

Loading…
Cancel
Save