aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-13 02:44:51 +0800
committerFabio Berger <me@fabioberger.com>2018-10-13 02:44:51 +0800
commita5eb346dd18f81b171280291f3d01b900a4aff1d (patch)
treebc35a1c6fe13f87c01dfbaffd6bf82789cea2c01 /packages/website/ts/components
parenta4604cb2f294f08318aa432b233571ae4e205fd5 (diff)
downloaddexon-sol-tools-a5eb346dd18f81b171280291f3d01b900a4aff1d.tar
dexon-sol-tools-a5eb346dd18f81b171280291f3d01b900a4aff1d.tar.gz
dexon-sol-tools-a5eb346dd18f81b171280291f3d01b900a4aff1d.tar.bz2
dexon-sol-tools-a5eb346dd18f81b171280291f3d01b900a4aff1d.tar.lz
dexon-sol-tools-a5eb346dd18f81b171280291f3d01b900a4aff1d.tar.xz
dexon-sol-tools-a5eb346dd18f81b171280291f3d01b900a4aff1d.tar.zst
dexon-sol-tools-a5eb346dd18f81b171280291f3d01b900a4aff1d.zip
fix: Remove unnecessary onClick prop from NestedSidebar, since one can listen to container element onClick
Diffstat (limited to 'packages/website/ts/components')
-rw-r--r--packages/website/ts/components/top_bar/top_bar.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/website/ts/components/top_bar/top_bar.tsx b/packages/website/ts/components/top_bar/top_bar.tsx
index fc13efec9..55a2a3954 100644
--- a/packages/website/ts/components/top_bar/top_bar.tsx
+++ b/packages/website/ts/components/top_bar/top_bar.tsx
@@ -309,12 +309,11 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> {
return undefined;
}
return (
- <div className="lg-hide md-hide">
+ <div className="lg-hide md-hide" onClick={this._onMenuButtonClick.bind(this)}>
<NestedSidebarMenu
sectionNameToLinks={this.props.sectionNameToLinks}
sidebarHeader={this.props.sidebarHeader}
shouldDisplaySectionHeaders={false}
- onMenuItemClick={this._onMenuButtonClick.bind(this)}
selectedVersion={this.props.docsVersion}
versions={this.props.availableDocVersions}
onVersionSelected={this.props.onVersionSelected}
@@ -328,12 +327,11 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> {
}
return (
- <div className="lg-hide md-hide">
+ <div className="lg-hide md-hide" onClick={this._onMenuButtonClick.bind(this)}>
<NestedSidebarMenu
sectionNameToLinks={this.props.sectionNameToLinks}
sidebarHeader={this.props.sidebarHeader}
shouldDisplaySectionHeaders={false}
- onMenuItemClick={this._onMenuButtonClick.bind(this)}
/>
</div>
);