aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-14 00:11:47 +0800
committerFabio Berger <me@fabioberger.com>2018-10-14 00:11:47 +0800
commit9b1f765ced7cabe21aa9fe8ef1cd3d08dcf96202 (patch)
tree16228ef5e7f3bfac3634b24fe16a300010d38134 /packages
parentd85daab96700dc77cd55f5b97c1e290a95ef20a4 (diff)
downloaddexon-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.tsx4
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 (