diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-12 21:54:44 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-12 21:54:44 +0800 |
commit | de20ef1a49966153f25236ee68b186cd49f8dc20 (patch) | |
tree | 6313477ff212da20b9d4dbcb27fb39a2dd4ff0d1 /packages/website/ts/containers | |
parent | dcdc411ab73c860d58a47a9b721d8047e68ce738 (diff) | |
download | dexon-sol-tools-de20ef1a49966153f25236ee68b186cd49f8dc20.tar dexon-sol-tools-de20ef1a49966153f25236ee68b186cd49f8dc20.tar.gz dexon-sol-tools-de20ef1a49966153f25236ee68b186cd49f8dc20.tar.bz2 dexon-sol-tools-de20ef1a49966153f25236ee68b186cd49f8dc20.tar.lz dexon-sol-tools-de20ef1a49966153f25236ee68b186cd49f8dc20.tar.xz dexon-sol-tools-de20ef1a49966153f25236ee68b186cd49f8dc20.tar.zst dexon-sol-tools-de20ef1a49966153f25236ee68b186cd49f8dc20.zip |
Refactor Home so that Dev section chrome is reusable across pages
Diffstat (limited to 'packages/website/ts/containers')
-rw-r--r-- | packages/website/ts/containers/docs_home.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/website/ts/containers/docs_home.ts b/packages/website/ts/containers/docs_home.ts index 9c7b70a6f..e0ca439a6 100644 --- a/packages/website/ts/containers/docs_home.ts +++ b/packages/website/ts/containers/docs_home.ts @@ -1,7 +1,8 @@ +import * as _ from 'lodash'; import * as React from 'react'; import { connect } from 'react-redux'; import { Dispatch } from 'redux'; -import { Home as HomeComponent, HomeProps } from 'ts/pages/documentation/home'; +import { DocsHome as DocsHomeComponent, DocsHomeProps } from 'ts/pages/documentation/docs_home'; import { Dispatcher } from 'ts/redux/dispatcher'; import { State } from 'ts/redux/reducer'; import { ScreenWidths } from 'ts/types'; @@ -16,7 +17,7 @@ interface ConnectedDispatch { dispatcher: Dispatcher; } -const mapStateToProps = (state: State, _ownProps: HomeProps): ConnectedState => ({ +const mapStateToProps = (state: State, _ownProps: DocsHomeProps): ConnectedState => ({ translate: state.translate, screenWidth: state.screenWidth, }); @@ -25,4 +26,6 @@ const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({ dispatcher: new Dispatcher(dispatch), }); -export const DocsHome: React.ComponentClass<HomeProps> = connect(mapStateToProps, mapDispatchToProps)(HomeComponent); +export const DocsHome: React.ComponentClass<DocsHomeProps> = connect(mapStateToProps, mapDispatchToProps)( + DocsHomeComponent, +); |