mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-13 15:29:16 +01:00
refactor: fixes linting errors components/SitePage/index.jsx
This commit is contained in:
parent
7762d68aef
commit
54642a6757
@ -1,25 +1,20 @@
|
||||
import React from 'react'
|
||||
import moment from 'moment'
|
||||
import { RouteHandler, Link } from 'react-router'
|
||||
import { prefixLink } from 'gatsby-helpers'
|
||||
import access from 'safe-access'
|
||||
import { config } from 'config'
|
||||
import SiteSidebar from '../SiteSidebar'
|
||||
import React from 'react';
|
||||
import SiteSidebar from '../SiteSidebar';
|
||||
import './style.css';
|
||||
|
||||
class SitePage extends React.Component {
|
||||
render() {
|
||||
const {route} = this.props
|
||||
const post = route.page.data
|
||||
const { route } = this.props;
|
||||
const post = route.page.data;
|
||||
|
||||
return (
|
||||
<div>
|
||||
<SiteSidebar {...this.props} />
|
||||
<div className='content'>
|
||||
<div className='main'>
|
||||
<div className='main-inner'>
|
||||
<div className='blog-page'>
|
||||
<div className='text'>
|
||||
<div className="content">
|
||||
<div className="main">
|
||||
<div className="main-inner">
|
||||
<div className="blog-page">
|
||||
<div className="text">
|
||||
<h1>{post.title}</h1>
|
||||
<div dangerouslySetInnerHTML={{ __html: post.body }} />
|
||||
</div>
|
||||
@ -34,6 +29,6 @@ class SitePage extends React.Component {
|
||||
|
||||
SitePage.propTypes = {
|
||||
route: React.PropTypes.object.isRequired,
|
||||
}
|
||||
};
|
||||
|
||||
export default SitePage
|
||||
export default SitePage;
|
||||
|
Loading…
Reference in New Issue
Block a user