|
|
@ -3,6 +3,7 @@ import React from 'react'
|
|
|
|
import { withRouter } from 'next/router'
|
|
|
|
import { withRouter } from 'next/router'
|
|
|
|
import { register, unregister } from 'next-offline/runtime'
|
|
|
|
import { register, unregister } from 'next-offline/runtime'
|
|
|
|
import debounce from 'lodash.debounce'
|
|
|
|
import debounce from 'lodash.debounce'
|
|
|
|
|
|
|
|
import Either from 'eitherx'
|
|
|
|
|
|
|
|
|
|
|
|
// Ours
|
|
|
|
// Ours
|
|
|
|
import EditorContainer from '../components/EditorContainer'
|
|
|
|
import EditorContainer from '../components/EditorContainer'
|
|
|
@ -44,11 +45,20 @@ class Index extends React.Component {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Page enableHeroText={true}>
|
|
|
|
<Page enableHeroText={true}>
|
|
|
|
<MetaLinks />
|
|
|
|
<MetaLinks />
|
|
|
|
|
|
|
|
<Either>
|
|
|
|
<EditorContainer
|
|
|
|
<EditorContainer
|
|
|
|
router={this.props.router}
|
|
|
|
router={this.props.router}
|
|
|
|
onUpdate={this.onEditorUpdate}
|
|
|
|
onUpdate={this.onEditorUpdate}
|
|
|
|
onReset={onReset}
|
|
|
|
onReset={onReset}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
|
|
|
An unexpected error has occurred. Please{' '}
|
|
|
|
|
|
|
|
<u>
|
|
|
|
|
|
|
|
<a href="https://github.com/dawnlabs/carbon">file an issue here</a>
|
|
|
|
|
|
|
|
</u>
|
|
|
|
|
|
|
|
.
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
</Either>
|
|
|
|
</Page>
|
|
|
|
</Page>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|