complete registration signup tab UI

pull/691/head
Audric Ackermann 5 years ago
parent e948684a83
commit 73a07f74f9

@ -143,14 +143,29 @@ export class RegistrationTabs extends React.Component<Props, State> {
} }
private renderSignUp() { private renderSignUp() {
return ( const {signUpMode} = this.state;
<div className="registration-container__content"> if (signUpMode === SignUpMode.Default) {
{this.renderSignUpHeader()} return (
<div className="registration-container__content">
{this.renderSignUpButton()} {this.renderSignUpHeader()}
{this.getRenderTermsConditionAgreement()} {this.renderSignUpButton()}
</div> </div>
); );
}
else {
return (
<div className="registration-container__content">
{this.renderSignUpHeader()}
<div className="registration-view-label">
Your Unique Session ID
</div>
{this.renderEnterSessionID(false)}
{this.renderSignUpButton()}
{this.getRenderTermsConditionAgreement()}
</div>
);
}
} }
private getRenderTermsConditionAgreement() { private getRenderTermsConditionAgreement() {
@ -187,10 +202,10 @@ export class RegistrationTabs extends React.Component<Props, State> {
let buttonText: string; let buttonText: string;
if (signUpMode !== SignUpMode.Default) { if (signUpMode !== SignUpMode.Default) {
buttonType = SessionButtonTypes.FullGreen; buttonType = SessionButtonTypes.FullGreen;
buttonText = 'Continue Your Session'; buttonText = 'Get started';
} else { } else {
buttonType = SessionButtonTypes.Green; buttonType = SessionButtonTypes.Green;
buttonText = 'Restore Using Seed'; buttonText = 'Generate Session ID';
} }
return ( return (
@ -272,7 +287,7 @@ export class RegistrationTabs extends React.Component<Props, State> {
"Device Pairing" from the main menu. Then, enter your Session ID "Device Pairing" from the main menu. Then, enter your Session ID
below to sign in. below to sign in.
</div> </div>
{this.renderEnterSessionID()} {this.renderEnterSessionID(true)}
</div> </div>
); );
} else { } else {
@ -280,11 +295,11 @@ export class RegistrationTabs extends React.Component<Props, State> {
} }
} }
private renderEnterSessionID() { private renderEnterSessionID(contentEditable: boolean) {
return ( return (
<div <div
className="signin-enter-session-id" className="signin-enter-session-id"
contentEditable={true} contentEditable={contentEditable}
placeholder="Enter your Session ID here" placeholder="Enter your Session ID here"
/> />
); );

Loading…
Cancel
Save