diff options
author | Fabio Berger <me@fabioberger.com> | 2018-02-22 03:46:16 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-02-22 03:46:16 +0800 |
commit | e2d17d122e25feeabb1d5499065274ec6e30bd4f (patch) | |
tree | 3b6db4ea36eea523b09e8aa0199111b0c98eedb1 /packages/website/ts/pages/wiki | |
parent | 0d7bf505810602e73b168bde6887f76e315c50ae (diff) | |
download | dexon-0x-contracts-e2d17d122e25feeabb1d5499065274ec6e30bd4f.tar.gz dexon-0x-contracts-e2d17d122e25feeabb1d5499065274ec6e30bd4f.tar.zst dexon-0x-contracts-e2d17d122e25feeabb1d5499065274ec6e30bd4f.zip |
Keep topBar and footer language to the one picked by the user
Diffstat (limited to 'packages/website/ts/pages/wiki')
-rw-r--r-- | packages/website/ts/pages/wiki/wiki.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/website/ts/pages/wiki/wiki.tsx b/packages/website/ts/pages/wiki/wiki.tsx index bbbda6eee..56c3be0fe 100644 --- a/packages/website/ts/pages/wiki/wiki.tsx +++ b/packages/website/ts/pages/wiki/wiki.tsx @@ -8,10 +8,12 @@ import { TopBar } from 'ts/components/top_bar/top_bar'; import { MarkdownSection } from 'ts/pages/shared/markdown_section'; import { NestedSidebarMenu } from 'ts/pages/shared/nested_sidebar_menu'; import { SectionHeader } from 'ts/pages/shared/section_header'; +import { Dispatcher } from 'ts/redux/dispatcher'; import { Article, ArticlesBySection, HeaderSizes, Styles, WebsitePaths } from 'ts/types'; import { colors } from 'ts/utils/colors'; import { configs } from 'ts/utils/configs'; import { constants } from 'ts/utils/constants'; +import { Translate } from 'ts/utils/translate'; import { utils } from 'ts/utils/utils'; const TOP_BAR_HEIGHT = 60; @@ -20,6 +22,8 @@ const WIKI_NOT_READY_BACKOUT_TIMEOUT_MS = 5000; export interface WikiProps { source: string; location: Location; + dispatcher: Dispatcher; + translate: Translate; } interface WikiState { @@ -79,6 +83,7 @@ export class Wiki extends React.Component<WikiProps, WikiState> { blockchainIsLoaded={false} location={this.props.location} menuSubsectionsBySection={menuSubsectionsBySection} + translate={this.props.translate} /> {_.isUndefined(this.state.articlesBySection) ? ( <div className="col col-12" style={mainContainersStyle}> |