use indentation for list items in error message

This commit is contained in:
GotPPay
2018-05-28 16:26:02 +02:00
parent d1d5cacddb
commit 22d5b32c71

View File

@@ -49,13 +49,15 @@ export class ValidationErrorsInfoDialog extends React.Component {
height={defaultDialogHeight + this.props.errorMessages.length * dialogHeightPerLine}
>
{this.props.errorMessages.map(errorMessage=>{
return (
<div>
<a>{errorMessage.message}</a>
<br/>
</div>
);})
const oneValidationMessage = (<span><a>{errorMessage.message}</a><br /></span>);
const oneValidationMessageWithTab = (<span><li style={{marginLeft:2 + "em"}}>{errorMessage.message}</li></span>);
if (errorMessage.field_name === "password-tab"){
return oneValidationMessageWithTab;
} else{
return oneValidationMessage;
}
})}
</Dialog>
}
</div>