add prettier and format all

This commit is contained in:
Thomas Ruoff
2021-02-08 22:51:35 +01:00
parent d7044f5f78
commit 78af180567
24 changed files with 266 additions and 297 deletions

View File

@@ -1,10 +1,8 @@
import React from 'react';
import React from 'react'
export default props => {
export default (props) => {
if (props.pdfIsLoading) {
return (
<div>Lade&hellip;</div>
);
return <div>Lade&hellip;</div>
}
const errorStyles = {
@@ -12,26 +10,27 @@ export default props => {
color: 'white',
backgroundColor: '#d81e1e',
borderRadius: '3px',
};
}
if (props.pdfError) {
return (
<div style={errorStyles}><span role="img" aria-label="Crying Man">😢</span> {props.pdfError}</div>
);
<div style={errorStyles}>
<span role="img" aria-label="Crying Man">
😢
</span>{' '}
{props.pdfError}
</div>
)
}
if (!props.pdfUrl) {
return (
<div>Knopf drücken dann gibts hier was zu sehen!</div>
);
return <div>Knopf drücken dann gibts hier was zu sehen!</div>
}
const styles = {
width: '700px',
height: '1050px'
};
height: '1050px',
}
return (
<embed src={props.pdfUrl} style={styles} type="application/pdf" />
);
};
return <embed src={props.pdfUrl} style={styles} type="application/pdf" />
}