diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-14 00:11:47 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-14 00:11:47 +0800 |
commit | 9b1f765ced7cabe21aa9fe8ef1cd3d08dcf96202 (patch) | |
tree | 16228ef5e7f3bfac3634b24fe16a300010d38134 /packages | |
parent | d85daab96700dc77cd55f5b97c1e290a95ef20a4 (diff) | |
download | dexon-sol-tools-9b1f765ced7cabe21aa9fe8ef1cd3d08dcf96202.tar dexon-sol-tools-9b1f765ced7cabe21aa9fe8ef1cd3d08dcf96202.tar.gz dexon-sol-tools-9b1f765ced7cabe21aa9fe8ef1cd3d08dcf96202.tar.bz2 dexon-sol-tools-9b1f765ced7cabe21aa9fe8ef1cd3d08dcf96202.tar.lz dexon-sol-tools-9b1f765ced7cabe21aa9fe8ef1cd3d08dcf96202.tar.xz dexon-sol-tools-9b1f765ced7cabe21aa9fe8ef1cd3d08dcf96202.tar.zst dexon-sol-tools-9b1f765ced7cabe21aa9fe8ef1cd3d08dcf96202.zip |
chore: only show sidebar once docs have loaded
Diffstat (limited to 'packages')
-rw-r--r-- | packages/website/ts/pages/documentation/doc_page.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/website/ts/pages/documentation/doc_page.tsx b/packages/website/ts/pages/documentation/doc_page.tsx index 101040c2c..19e76a51b 100644 --- a/packages/website/ts/pages/documentation/doc_page.tsx +++ b/packages/website/ts/pages/documentation/doc_page.tsx @@ -91,7 +91,9 @@ export class DocPage extends React.Component<DocPageProps, DocPageState> { sourceUrl={sourceUrl} /> ); - const sidebar = ( + const sidebar = _.isUndefined(this.state.docAgnosticFormat) ? ( + <div /> + ) : ( <NestedSidebarMenu sidebarHeader={this._renderSidebarHeader()} sectionNameToLinks={sectionNameToLinks} /> ); return ( |