import React from 'react'
import { Route, IndexRoute } from 'react-router'

import PageLayout from 'pages/layouts/PageLayout'

import HomePage from 'pages/HomePage'
import AboutPage from 'pages/AboutPage'
import WritePage from 'pages/WritePage'
import EntryPage from 'pages/EntryPage'
import ErrorPage from 'core/app/pages/ErrorPage'

export default function getRoutes () {
  return (
    <Route component={PageLayout}>
      <IndexRoute component={HomePage} />
      <Route path="/about" component={AboutPage} />
      <Route path="/grid"
        getComponent={(nextState, cb) => {
          if (process.env.BROWSER != true) {
            return cb(null, require('./pages/GridPage').default);
          }
          require.ensure([], require => {
            cb(null, require('./pages/GridPage').default);
          }, 'grid');
        }}
      />
      <Route path="/write" component={WritePage} />
      <Route path="/post/:id" component={EntryPage} />
      <Route path="*" component={ErrorPage} status="404" />
    </Route>
  )
}

@@ -612,16 +612,17 @@
 OWSER !=
+=
  true) %7B
@@ -678,33 +678,32 @@
 dPage').default)
-;
 %0A          %7D%0A   
@@ -798,17 +798,16 @@
 default)
-;
 %0A       
@@ -823,9 +823,8 @@
 id')
-;
 %0A   

fix lint errors