1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 02:42:48 +00:00
This commit is contained in:
2016-09-27 23:34:30 +00:00
parent 0575487ac4
commit 90b4570d01
8 changed files with 62 additions and 89 deletions

View File

@@ -28,16 +28,18 @@ export default class Post extends React.Component {
const post = this.props.app.post;
const fetched = this.props.app.fetched;
const fetching = this.props.app.fetching;
if(!fetched){
return <Loading/>;
}
return (
<div class="Content">
{fetched ?
<div>
<div dangerouslySetInnerHTML={{__html : marked(post, {renderer : renderer})}}/>
<Link to="/" class="link"><i class="fa fa-caret-left" aria-hidden="true"></i> Home</Link>
</div>
: <Loading/>}
<div>
<div dangerouslySetInnerHTML={{__html : marked(post, {renderer : renderer})}}/>
<Link to="/" class="link"><i class="fa fa-caret-left" aria-hidden="true"></i> Home</Link>
</div>
</div>
);
}
}