diff options
author | Fabio Berger <me@fabioberger.com> | 2018-02-22 08:34:14 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-02-22 08:34:14 +0800 |
commit | 66b36f6d8f7c0f0487e53badb035ac50e1ec5669 (patch) | |
tree | 5b2c2e0082a13b1c95b8281722a156b96cb1ccfe /packages/website/ts/containers/connect_documentation.tsx | |
parent | 1b3a9102f1d9c83ca6675a0e95cea6c4ceab01eb (diff) | |
download | dexon-0x-contracts-66b36f6d8f7c0f0487e53badb035ac50e1ec5669.tar.gz dexon-0x-contracts-66b36f6d8f7c0f0487e53badb035ac50e1ec5669.tar.zst dexon-0x-contracts-66b36f6d8f7c0f0487e53badb035ac50e1ec5669.zip |
Begin refactoring out doc generator template
Diffstat (limited to 'packages/website/ts/containers/connect_documentation.tsx')
-rw-r--r-- | packages/website/ts/containers/connect_documentation.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/website/ts/containers/connect_documentation.tsx b/packages/website/ts/containers/connect_documentation.tsx index 2488329dd..bff8db35d 100644 --- a/packages/website/ts/containers/connect_documentation.tsx +++ b/packages/website/ts/containers/connect_documentation.tsx @@ -2,8 +2,8 @@ import * as _ from 'lodash'; import * as React from 'react'; import { connect } from 'react-redux'; import { Dispatch } from 'redux'; +import { DocPage as DocPageComponent, DocPageProps } from 'ts/pages/documentation/doc_page'; import { DocsInfo } from 'ts/pages/documentation/docs_info'; -import { Documentation as DocumentationComponent, DocumentationAllProps } from 'ts/pages/documentation/documentation'; import { Dispatcher } from 'ts/redux/dispatcher'; import { State } from 'ts/redux/reducer'; import { DocsInfoConfig, Environments, WebsitePaths } from 'ts/types'; @@ -91,7 +91,7 @@ interface ConnectedDispatch { dispatcher: Dispatcher; } -const mapStateToProps = (state: State, ownProps: DocumentationAllProps): ConnectedState => ({ +const mapStateToProps = (state: State, ownProps: DocPageProps): ConnectedState => ({ docsVersion: state.docsVersion, availableDocVersions: state.availableDocVersions, translate: state.translate, @@ -102,6 +102,6 @@ const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({ dispatcher: new Dispatcher(dispatch), }); -export const Documentation: React.ComponentClass<DocumentationAllProps> = connect(mapStateToProps, mapDispatchToProps)( - DocumentationComponent, +export const Documentation: React.ComponentClass<DocPageProps> = connect(mapStateToProps, mapDispatchToProps)( + DocPageComponent, ); |