diff options
author | Fabio Berger <me@fabioberger.com> | 2018-11-11 23:48:31 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-11-11 23:48:31 +0800 |
commit | 1ec8a4115f386c45b12bdf0b6ebdcabb1a1c5bb7 (patch) | |
tree | 32ee653a39cd70ed78bfec58482cce1bbfa21265 /packages/website/ts/pages | |
parent | 753b33aec5a12a30f08701aa04b6ec67e7f590de (diff) | |
download | dexon-sol-tools-1ec8a4115f386c45b12bdf0b6ebdcabb1a1c5bb7.tar dexon-sol-tools-1ec8a4115f386c45b12bdf0b6ebdcabb1a1c5bb7.tar.gz dexon-sol-tools-1ec8a4115f386c45b12bdf0b6ebdcabb1a1c5bb7.tar.bz2 dexon-sol-tools-1ec8a4115f386c45b12bdf0b6ebdcabb1a1c5bb7.tar.lz dexon-sol-tools-1ec8a4115f386c45b12bdf0b6ebdcabb1a1c5bb7.tar.xz dexon-sol-tools-1ec8a4115f386c45b12bdf0b6ebdcabb1a1c5bb7.tar.zst dexon-sol-tools-1ec8a4115f386c45b12bdf0b6ebdcabb1a1c5bb7.zip |
Fix menuItem background colors depending on the context
Diffstat (limited to 'packages/website/ts/pages')
-rw-r--r-- | packages/website/ts/pages/documentation/doc_page.tsx | 6 | ||||
-rw-r--r-- | packages/website/ts/pages/documentation/docs_home.tsx | 1 | ||||
-rw-r--r-- | packages/website/ts/pages/wiki/wiki.tsx | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/packages/website/ts/pages/documentation/doc_page.tsx b/packages/website/ts/pages/documentation/doc_page.tsx index 28bf2dba1..80bde130c 100644 --- a/packages/website/ts/pages/documentation/doc_page.tsx +++ b/packages/website/ts/pages/documentation/doc_page.tsx @@ -94,7 +94,11 @@ export class DocPage extends React.Component<DocPageProps, DocPageState> { const sidebar = _.isUndefined(this.state.docAgnosticFormat) ? ( <div /> ) : ( - <NestedSidebarMenu sidebarHeader={this._renderSidebarHeader()} sectionNameToLinks={sectionNameToLinks} /> + <NestedSidebarMenu + sidebarHeader={this._renderSidebarHeader()} + sectionNameToLinks={sectionNameToLinks} + screenWidth={this.props.screenWidth} + /> ); return ( <DevelopersPage diff --git a/packages/website/ts/pages/documentation/docs_home.tsx b/packages/website/ts/pages/documentation/docs_home.tsx index bbbee2d2d..017573304 100644 --- a/packages/website/ts/pages/documentation/docs_home.tsx +++ b/packages/website/ts/pages/documentation/docs_home.tsx @@ -346,6 +346,7 @@ export class DocsHome extends React.Component<DocsHomeProps, DocsHomeState> { sidebarHeader={isSmallScreen ? this._renderSidebarHeader() : undefined} sectionNameToLinks={sectionNameToLinks} shouldReformatMenuItemNames={false} + screenWidth={this.props.screenWidth} /> ); return ( diff --git a/packages/website/ts/pages/wiki/wiki.tsx b/packages/website/ts/pages/wiki/wiki.tsx index c1802b1f8..c3c1600a5 100644 --- a/packages/website/ts/pages/wiki/wiki.tsx +++ b/packages/website/ts/pages/wiki/wiki.tsx @@ -76,6 +76,7 @@ export class Wiki extends React.Component<WikiProps, WikiState> { <NestedSidebarMenu sidebarHeader={isSmallScreen ? this._renderSidebarHeader() : undefined} sectionNameToLinks={sectionNameToLinks} + screenWidth={this.props.screenWidth} /> ); return ( |