aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/pages/documentation/event_definition.tsx
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-03 13:07:00 +0800
committerGitHub <noreply@github.com>2018-03-03 13:07:00 +0800
commit4dbb2ed167ff93cc5e5bb0daea5a272eef01baf3 (patch)
tree93f15ba9ad448d9390db38b76c601ac41e4f4eeb /packages/website/ts/pages/documentation/event_definition.tsx
parent4a57f2a762619932a882d08e62006e83a584a684 (diff)
parent212d680a477917817138790560d88d06cea5ec6f (diff)
downloaddexon-sol-tools-4dbb2ed167ff93cc5e5bb0daea5a272eef01baf3.tar
dexon-sol-tools-4dbb2ed167ff93cc5e5bb0daea5a272eef01baf3.tar.gz
dexon-sol-tools-4dbb2ed167ff93cc5e5bb0daea5a272eef01baf3.tar.bz2
dexon-sol-tools-4dbb2ed167ff93cc5e5bb0daea5a272eef01baf3.tar.lz
dexon-sol-tools-4dbb2ed167ff93cc5e5bb0daea5a272eef01baf3.tar.xz
dexon-sol-tools-4dbb2ed167ff93cc5e5bb0daea5a272eef01baf3.tar.zst
dexon-sol-tools-4dbb2ed167ff93cc5e5bb0daea5a272eef01baf3.zip
Merge pull request #427 from 0xProject/fix/doc_bugs
Miscellaneous Doc Fixes
Diffstat (limited to 'packages/website/ts/pages/documentation/event_definition.tsx')
-rw-r--r--packages/website/ts/pages/documentation/event_definition.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/website/ts/pages/documentation/event_definition.tsx b/packages/website/ts/pages/documentation/event_definition.tsx
index 0e53e38e7..e62c9ecbd 100644
--- a/packages/website/ts/pages/documentation/event_definition.tsx
+++ b/packages/website/ts/pages/documentation/event_definition.tsx
@@ -25,9 +25,10 @@ export class EventDefinition extends React.Component<EventDefinitionProps, Event
}
public render() {
const event = this.props.event;
+ const id = `${this.props.sectionName}-${event.name}`;
return (
<div
- id={`${this.props.sectionName}-${event.name}`}
+ id={id}
className="pb2"
style={{ overflow: 'hidden', width: '100%' }}
onMouseOver={this._setAnchorVisibility.bind(this, true)}
@@ -36,7 +37,7 @@ export class EventDefinition extends React.Component<EventDefinitionProps, Event
<AnchorTitle
headerSize={HeaderSizes.H3}
title={`Event ${event.name}`}
- id={event.name}
+ id={id}
shouldShowAnchor={this.state.shouldShowAnchor}
/>
<div style={{ fontSize: 16 }}>