2017-07-16 20:19:45 +00:00
|
|
|
import React from 'react'
|
|
|
|
import Link from 'next/link'
|
|
|
|
|
|
|
|
import PureComponent from '../components/PureComponent'
|
|
|
|
import ExtendedComponent from '../components/ExtendedComponent'
|
2018-03-05 11:46:13 +00:00
|
|
|
import ComponentWithTrans from '../components/ComponentWithTrans'
|
|
|
|
import { withI18next } from '../lib/withI18next'
|
2017-07-16 20:19:45 +00:00
|
|
|
|
2018-03-05 11:46:13 +00:00
|
|
|
export default withI18next(['page2', 'common'])(({ t, initialI18nStore }) => (
|
|
|
|
<div>
|
|
|
|
<h1>{t('welcomePage2')}</h1>
|
|
|
|
<p>{t('common:integrates_react-i18next')}</p>
|
|
|
|
<PureComponent t={t} />
|
|
|
|
<ExtendedComponent />
|
|
|
|
<ComponentWithTrans />
|
|
|
|
<Link href='/'>
|
|
|
|
<a>{t('link.gotoPage1')}</a>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
))
|