fix(auth): Hide title when long acct. err present

This commit is contained in:
Ben Gotow 2016-10-20 16:26:52 -07:00
parent 2b36e9d8a9
commit f655ce9821

View file

@ -150,6 +150,8 @@ const CreatePageForForm = (FormComponent) => {
throw new Error(`Cannot find account type ${accountInfo.type}`);
}
const hideTitle = errorMessage && errorMessage.length > 120;
return (
<div className={`page account-setup ${FormComponent.displayName}`}>
<div className="logo-container">
@ -160,9 +162,7 @@ const CreatePageForForm = (FormComponent) => {
className="logo"
/>
</div>
<h2>
{FormComponent.titleLabel(AccountType)}
</h2>
{hideTitle ? <div style={{height: 20}} /> : <h2>{FormComponent.titleLabel(AccountType)}</h2>}
<FormErrorMessage
message={errorMessage}
empty={FormComponent.subtitleLabel(AccountType)}