Commit e3d3d97c authored by Ben Wheeler's avatar Ben Wheeler

change p tags to divs; set isRequired on canTryAgain

parent 510906e5
......@@ -34,22 +34,22 @@ class RegistrationErrorStep extends React.Component {
titleClassName="join-flow-error-title"
onSubmit={this.handleSubmit}
>
<p className="join-flow-instructions">
<div className="join-flow-instructions">
<FormattedMessage id="registration.cantCreateAccount" />
</p>
</div>
{this.props.errorMsg && (
<p className="join-flow-instructions registration-error-msg">
<div className="join-flow-instructions registration-error-msg">
{this.props.errorMsg}
</p>
</div>
)}
{this.props.canTryAgain ? (
<p className="join-flow-instructions">
<div className="join-flow-instructions">
<FormattedMessage id="registration.tryAgainInstruction" />
</p>
</div>
) : (
<p className="join-flow-instructions">
<div className="join-flow-instructions">
<FormattedMessage id="registration.startOverInstruction" />
</p>
</div>
)}
</JoinFlowStep>
);
......@@ -63,6 +63,10 @@ RegistrationErrorStep.propTypes = {
onSubmit: PropTypes.func.isRequired
};
RegistrationErrorStep.defaultProps = {
canTryAgain: false
};
const IntlRegistrationErrorStep = injectIntl(RegistrationErrorStep);
module.exports = IntlRegistrationErrorStep;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment