2017-07-13 18:55:29 +00:00
|
|
|
import React from 'react'
|
2018-12-17 16:34:32 +00:00
|
|
|
import { connect } from 'react-redux'
|
2018-05-16 08:47:12 +00:00
|
|
|
|
2018-12-17 16:34:32 +00:00
|
|
|
import { startClock, tickClock } from '../actions'
|
2017-07-13 18:55:29 +00:00
|
|
|
import Page from '../components/page'
|
|
|
|
|
2018-05-16 08:47:12 +00:00
|
|
|
class Other extends React.Component {
|
2018-05-13 16:26:17 +00:00
|
|
|
static async getInitialProps (props) {
|
|
|
|
const { store, isServer } = props.ctx
|
2018-02-11 18:55:16 +00:00
|
|
|
store.dispatch(tickClock(isServer))
|
2018-05-13 16:26:17 +00:00
|
|
|
return { isServer }
|
2017-07-13 18:55:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
componentDidMount () {
|
|
|
|
this.props.dispatch(startClock())
|
|
|
|
}
|
|
|
|
|
|
|
|
render () {
|
2018-05-16 08:47:12 +00:00
|
|
|
return <Page title='Other Page' linkTo='/' NavigateTo='Index Page' />
|
2017-07-13 18:55:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-16 08:47:12 +00:00
|
|
|
export default connect()(Other)
|