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