style error

This commit is contained in:
Thomas Ruoff
2018-01-08 00:32:02 +01:00
parent 8f5dc9f1ae
commit a957c0c4f3

View File

@@ -3,13 +3,20 @@ import React from 'react';
export default props => { export default props => {
if (props.pdfIsLoading) { if (props.pdfIsLoading) {
return ( return (
<div>Lade...</div> <div>Lade&hellip;</div>
); );
} }
const errorStyles = {
padding: '6px 12px',
color: 'white',
backgroundColor: '#d81e1e',
borderRadius: '3px',
};
if (props.pdfError) { if (props.pdfError) {
return ( return (
<div>{props.pdfError}</div> <div style={errorStyles}>&#xe413; {props.pdfError}</div>
); );
} }