Skip to content

Commit

Permalink
Revert "remove page3"
Browse files Browse the repository at this point in the history
This reverts commit 4b83376.
  • Loading branch information
isaachinman committed Oct 28, 2018
1 parent 3c20461 commit 0e451c4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example/nextjs/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,9 @@ export default withI18next(['home', 'common'])(({ t, initialI18nStore, ...rest }
<Link href="/page2">
<a>{t('link.gotoPage2')}</a>
</Link>
<br />
<Link href="/page3">
<a>{t('link.gotoPage3')}</a>
</Link>
</div>
));
12 changes: 12 additions & 0 deletions example/nextjs/pages/page3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// a page not using i18next - no hoc - not t function
import React from 'react';
import Link from 'next/link';

export default () => (
<div>
<h1>Hello Page 3</h1>
<Link href="/">
<a>back</a>
</Link>
</div>
);

0 comments on commit 0e451c4

Please sign in to comment.