aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs/src/components
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-08-01 23:33:28 +0800
committerFabio Berger <me@fabioberger.com>2018-08-01 23:33:28 +0800
commit11869122b4fe00c834347f9911985d7b2572bc9b (patch)
tree23d03a04d17e0f15bad126945aa8c01d5becb923 /packages/react-docs/src/components
parent9b24459108c826843cfddb377e66327e11b1d85b (diff)
downloaddexon-0x-contracts-11869122b4fe00c834347f9911985d7b2572bc9b.tar.gz
dexon-0x-contracts-11869122b4fe00c834347f9911985d7b2572bc9b.tar.zst
dexon-0x-contracts-11869122b4fe00c834347f9911985d7b2572bc9b.zip
Update React-scroll, getting rid of the need to manually set the url hash
Diffstat (limited to 'packages/react-docs/src/components')
-rw-r--r--packages/react-docs/src/components/signature.tsx2
-rw-r--r--packages/react-docs/src/components/type.tsx1
2 files changed, 2 insertions, 1 deletions
diff --git a/packages/react-docs/src/components/signature.tsx b/packages/react-docs/src/components/signature.tsx
index 77e9cc909..5f28050d2 100644
--- a/packages/react-docs/src/components/signature.tsx
+++ b/packages/react-docs/src/components/signature.tsx
@@ -27,7 +27,7 @@ const defaultProps = {
};
export const Signature: React.SFC<SignatureProps> = (props: SignatureProps) => {
- const sectionName = constants.TYPES_SECTION_NAME;
+ const sectionName = props.sectionName;
const parameters = renderParameters(props.parameters, props.docsInfo, sectionName, props.typeDefinitionByName);
const paramStringArray: any[] = [];
// HACK: For now we don't put params on newlines if there are less then 2 of them.
diff --git a/packages/react-docs/src/components/type.tsx b/packages/react-docs/src/components/type.tsx
index e453349ef..04fcd9998 100644
--- a/packages/react-docs/src/components/type.tsx
+++ b/packages/react-docs/src/components/type.tsx
@@ -182,6 +182,7 @@ export function Type(props: TypeProps): any {
<ScrollLink
to={typeDefinitionAnchorId}
offset={0}
+ hashSpy={true}
duration={sharedConstants.DOCS_SCROLL_DURATION_MS}
containerId={sharedConstants.DOCS_CONTAINER_ID}
>