diff options
author | Fabio Berger <me@fabioberger.com> | 2018-03-03 13:07:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-03 13:07:00 +0800 |
commit | 4dbb2ed167ff93cc5e5bb0daea5a272eef01baf3 (patch) | |
tree | 93f15ba9ad448d9390db38b76c601ac41e4f4eeb /packages/website/ts/containers/landing.ts | |
parent | 4a57f2a762619932a882d08e62006e83a584a684 (diff) | |
parent | 212d680a477917817138790560d88d06cea5ec6f (diff) | |
download | dexon-sol-tools-4dbb2ed167ff93cc5e5bb0daea5a272eef01baf3.tar dexon-sol-tools-4dbb2ed167ff93cc5e5bb0daea5a272eef01baf3.tar.gz dexon-sol-tools-4dbb2ed167ff93cc5e5bb0daea5a272eef01baf3.tar.bz2 dexon-sol-tools-4dbb2ed167ff93cc5e5bb0daea5a272eef01baf3.tar.lz dexon-sol-tools-4dbb2ed167ff93cc5e5bb0daea5a272eef01baf3.tar.xz dexon-sol-tools-4dbb2ed167ff93cc5e5bb0daea5a272eef01baf3.tar.zst dexon-sol-tools-4dbb2ed167ff93cc5e5bb0daea5a272eef01baf3.zip |
Merge pull request #427 from 0xProject/fix/doc_bugs
Miscellaneous Doc Fixes
Diffstat (limited to 'packages/website/ts/containers/landing.ts')
-rw-r--r-- | packages/website/ts/containers/landing.ts | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/website/ts/containers/landing.ts b/packages/website/ts/containers/landing.ts new file mode 100644 index 000000000..a620bb12e --- /dev/null +++ b/packages/website/ts/containers/landing.ts @@ -0,0 +1,28 @@ +import * as _ from 'lodash'; +import * as React from 'react'; +import { connect } from 'react-redux'; +import { Dispatch } from 'redux'; +import { Landing as LandingComponent, LandingProps } from 'ts/pages/landing/landing'; +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: LandingProps): ConnectedState => ({ + translate: state.translate, +}); + +const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({ + dispatcher: new Dispatcher(dispatch), +}); + +export const Landing: React.ComponentClass<LandingProps> = connect(mapStateToProps, mapDispatchToProps)( + LandingComponent, +); |