diff options
author | Fabio Berger <me@fabioberger.com> | 2018-11-14 00:14:13 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-11-14 00:14:13 +0800 |
commit | 4a444591c11933a4dc2ee74b8eca1b4d7172362d (patch) | |
tree | 5e375f533cbfca34ace747024e521e0a5f430ae4 /packages/website/ts/containers/launch_kit.ts | |
parent | c41622c20aea8ba89dc9899ff8b3ab6f22f53503 (diff) | |
download | dexon-sol-tools-4a444591c11933a4dc2ee74b8eca1b4d7172362d.tar dexon-sol-tools-4a444591c11933a4dc2ee74b8eca1b4d7172362d.tar.gz dexon-sol-tools-4a444591c11933a4dc2ee74b8eca1b4d7172362d.tar.bz2 dexon-sol-tools-4a444591c11933a4dc2ee74b8eca1b4d7172362d.tar.lz dexon-sol-tools-4a444591c11933a4dc2ee74b8eca1b4d7172362d.tar.xz dexon-sol-tools-4a444591c11933a4dc2ee74b8eca1b4d7172362d.tar.zst dexon-sol-tools-4a444591c11933a4dc2ee74b8eca1b4d7172362d.zip |
Implement 0x launch kit landing page
Diffstat (limited to 'packages/website/ts/containers/launch_kit.ts')
-rw-r--r-- | packages/website/ts/containers/launch_kit.ts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/packages/website/ts/containers/launch_kit.ts b/packages/website/ts/containers/launch_kit.ts new file mode 100644 index 000000000..2557f38a5 --- /dev/null +++ b/packages/website/ts/containers/launch_kit.ts @@ -0,0 +1,27 @@ +import * as React from 'react'; +import { connect } from 'react-redux'; +import { Dispatch } from 'redux'; +import { LaunchKit as LaunchKitComponent, LaunchKitProps } from 'ts/pages/launch_kit/launch_kit'; +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: LaunchKitProps): ConnectedState => ({ + translate: state.translate, +}); + +const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({ + dispatcher: new Dispatcher(dispatch), +}); + +export const LaunchKit: React.ComponentClass<LaunchKitProps> = connect(mapStateToProps, mapDispatchToProps)( + LaunchKitComponent, +); |