further work

This commit is contained in:
Thomas Ruoff
2017-02-19 23:27:53 +01:00
parent 6865a63832
commit da027191d6
8 changed files with 138 additions and 20 deletions

View File

@@ -1,11 +1,25 @@
import { Component, h } from 'preact';
export default props => {
if (props.pdfIsLoading) {
return (
<div>Lade...</div>
);
}
if (props.pdfError) {
return (
<div>{props.pdfError}</div>
);
}
if (!props.pdfUrl) {
return '';
return (
<div>Knopf drücken dann gibts hier was zu sehen!</div>
);
}
return (
<embed src={props.pdfUrl} width="100%" height="100%"/>
<embed src={props.pdfUrl} width="600px" height="1000px"/>
);
};