mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 06:27:19 +01:00
style error
This commit is contained in:
@@ -3,13 +3,20 @@ import React from 'react';
|
||||
export default props => {
|
||||
if (props.pdfIsLoading) {
|
||||
return (
|
||||
<div>Lade...</div>
|
||||
<div>Lade…</div>
|
||||
);
|
||||
}
|
||||
|
||||
const errorStyles = {
|
||||
padding: '6px 12px',
|
||||
color: 'white',
|
||||
backgroundColor: '#d81e1e',
|
||||
borderRadius: '3px',
|
||||
};
|
||||
|
||||
if (props.pdfError) {
|
||||
return (
|
||||
<div>{props.pdfError}</div>
|
||||
<div style={errorStyles}> {props.pdfError}</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user