aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/containers/about.tsx
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-02-22 09:09:33 +0800
committerGitHub <noreply@github.com>2018-02-22 09:09:33 +0800
commitdfe2579eebdaf348bb2e5690f901ca717c5f6392 (patch)
tree59a0d97371fd69f79a54f6dd4f6c602561f04115 /packages/website/ts/containers/about.tsx
parentbe19316dfb45600b2ce264a90dde7ace460fd0ac (diff)
parent1b3a9102f1d9c83ca6675a0e95cea6c4ceab01eb (diff)
downloaddexon-sol-tools-dfe2579eebdaf348bb2e5690f901ca717c5f6392.tar
dexon-sol-tools-dfe2579eebdaf348bb2e5690f901ca717c5f6392.tar.gz
dexon-sol-tools-dfe2579eebdaf348bb2e5690f901ca717c5f6392.tar.bz2
dexon-sol-tools-dfe2579eebdaf348bb2e5690f901ca717c5f6392.tar.lz
dexon-sol-tools-dfe2579eebdaf348bb2e5690f901ca717c5f6392.tar.xz
dexon-sol-tools-dfe2579eebdaf348bb2e5690f901ca717c5f6392.tar.zst
dexon-sol-tools-dfe2579eebdaf348bb2e5690f901ca717c5f6392.zip
Merge pull request #410 from 0xProject/translateHomepage
Translate Landing Page
Diffstat (limited to 'packages/website/ts/containers/about.tsx')
-rw-r--r--packages/website/ts/containers/about.tsx26
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/website/ts/containers/about.tsx b/packages/website/ts/containers/about.tsx
new file mode 100644
index 000000000..ce8fd3afb
--- /dev/null
+++ b/packages/website/ts/containers/about.tsx
@@ -0,0 +1,26 @@
+import * as _ from 'lodash';
+import * as React from 'react';
+import { connect } from 'react-redux';
+import { Dispatch } from 'redux';
+import { About as AboutComponent, AboutProps } from 'ts/pages/about/about';
+import { Dispatcher } from 'ts/redux/dispatcher';
+import { State } from 'ts/redux/reducer';
+import { Translate } from 'ts/utils/translate';
+
+interface ConnectedState {
+ translate: Translate;
+}
+
+interface ConnectedDispatch {
+ dispatcher: Dispatcher;
+}
+
+const mapStateToProps = (state: State, ownProps: AboutProps): ConnectedState => ({
+ translate: state.translate,
+});
+
+const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
+ dispatcher: new Dispatcher(dispatch),
+});
+
+export const About: React.ComponentClass<AboutProps> = connect(mapStateToProps, mapDispatchToProps)(AboutComponent);