aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-06 23:37:37 +0800
committerFabio Berger <me@fabioberger.com>2018-03-06 23:37:37 +0800
commitc8ace2edc017969f405ffaa1293620850ed5fc05 (patch)
tree1d6c08d4fd8c8ee1f76f4d5ee6fb2b14e0f46c3d /packages/react-docs/src
parent0b1ba9f9971bea9003dfb30fca535c17ce62ad08 (diff)
downloaddexon-sol-tools-c8ace2edc017969f405ffaa1293620850ed5fc05.tar
dexon-sol-tools-c8ace2edc017969f405ffaa1293620850ed5fc05.tar.gz
dexon-sol-tools-c8ace2edc017969f405ffaa1293620850ed5fc05.tar.bz2
dexon-sol-tools-c8ace2edc017969f405ffaa1293620850ed5fc05.tar.lz
dexon-sol-tools-c8ace2edc017969f405ffaa1293620850ed5fc05.tar.xz
dexon-sol-tools-c8ace2edc017969f405ffaa1293620850ed5fc05.tar.zst
dexon-sol-tools-c8ace2edc017969f405ffaa1293620850ed5fc05.zip
Remove location prop
Diffstat (limited to 'packages/react-docs/src')
-rw-r--r--packages/react-docs/src/ts/components/documentation.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/react-docs/src/ts/components/documentation.tsx b/packages/react-docs/src/ts/components/documentation.tsx
index 62632184c..f5a117797 100644
--- a/packages/react-docs/src/ts/components/documentation.tsx
+++ b/packages/react-docs/src/ts/components/documentation.tsx
@@ -47,7 +47,6 @@ const networkNameToColor: { [network: string]: string } = {
};
export interface DocumentationProps {
- location: Location;
docsVersion: string;
availableDocVersions: string[];
docsInfo: DocsInfo;
@@ -80,7 +79,7 @@ const styles: Styles = {
export class Documentation extends React.Component<DocumentationProps, DocumentationState> {
public componentDidUpdate(prevProps: DocumentationProps, prevState: DocumentationState) {
if (!_.isEqual(prevProps.docAgnosticFormat, this.props.docAgnosticFormat)) {
- const hash = this.props.location.hash.slice(1);
+ const hash = window.location.hash.slice(1);
sharedUtils.scrollToHash(hash, sharedConstants.SCROLL_CONTAINER_ID);
}
}