mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 02:42:48 +00:00
styling
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user