aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/pages/not_found.tsx
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-02-22 03:46:16 +0800
committerFabio Berger <me@fabioberger.com>2018-02-22 03:46:16 +0800
commite2d17d122e25feeabb1d5499065274ec6e30bd4f (patch)
tree3b6db4ea36eea523b09e8aa0199111b0c98eedb1 /packages/website/ts/pages/not_found.tsx
parent0d7bf505810602e73b168bde6887f76e315c50ae (diff)
downloaddexon-sol-tools-e2d17d122e25feeabb1d5499065274ec6e30bd4f.tar
dexon-sol-tools-e2d17d122e25feeabb1d5499065274ec6e30bd4f.tar.gz
dexon-sol-tools-e2d17d122e25feeabb1d5499065274ec6e30bd4f.tar.bz2
dexon-sol-tools-e2d17d122e25feeabb1d5499065274ec6e30bd4f.tar.lz
dexon-sol-tools-e2d17d122e25feeabb1d5499065274ec6e30bd4f.tar.xz
dexon-sol-tools-e2d17d122e25feeabb1d5499065274ec6e30bd4f.tar.zst
dexon-sol-tools-e2d17d122e25feeabb1d5499065274ec6e30bd4f.zip
Keep topBar and footer language to the one picked by the user
Diffstat (limited to 'packages/website/ts/pages/not_found.tsx')
-rw-r--r--packages/website/ts/pages/not_found.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/website/ts/pages/not_found.tsx b/packages/website/ts/pages/not_found.tsx
index 0a6ec071c..ad37f6242 100644
--- a/packages/website/ts/pages/not_found.tsx
+++ b/packages/website/ts/pages/not_found.tsx
@@ -2,10 +2,14 @@ import * as _ from 'lodash';
import * as React from 'react';
import { Footer } from 'ts/components/footer';
import { TopBar } from 'ts/components/top_bar/top_bar';
+import { Dispatcher } from 'ts/redux/dispatcher';
import { Styles } from 'ts/types';
+import { Translate } from 'ts/utils/translate';
export interface NotFoundProps {
location: Location;
+ translate: Translate;
+ dispatcher: Dispatcher;
}
interface NotFoundState {}
@@ -20,7 +24,7 @@ export class NotFound extends React.Component<NotFoundProps, NotFoundState> {
public render() {
return (
<div>
- <TopBar blockchainIsLoaded={false} location={this.props.location} />
+ <TopBar blockchainIsLoaded={false} location={this.props.location} translate={this.props.translate} />
<div className="mx-auto max-width-4 py4">
<div className="center py4">
<div className="py4">
@@ -35,7 +39,7 @@ export class NotFound extends React.Component<NotFoundProps, NotFoundState> {
</div>
</div>
</div>
- <Footer />
+ <Footer translate={this.props.translate} dispatcher={this.props.dispatcher} />
</div>
);
}