diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-20 00:40:55 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-20 00:40:55 +0800 |
commit | 0de654bbd52f7d4702cec9f1a9a5a2cbb793181b (patch) | |
tree | ba341b86b4000cf94669a65d0fa2499c05897db9 /packages/website/ts/pages/documentation | |
parent | d129c922edd8bc0319273488b23a5257d736502d (diff) | |
download | dexon-sol-tools-0de654bbd52f7d4702cec9f1a9a5a2cbb793181b.tar dexon-sol-tools-0de654bbd52f7d4702cec9f1a9a5a2cbb793181b.tar.gz dexon-sol-tools-0de654bbd52f7d4702cec9f1a9a5a2cbb793181b.tar.bz2 dexon-sol-tools-0de654bbd52f7d4702cec9f1a9a5a2cbb793181b.tar.lz dexon-sol-tools-0de654bbd52f7d4702cec9f1a9a5a2cbb793181b.tar.xz dexon-sol-tools-0de654bbd52f7d4702cec9f1a9a5a2cbb793181b.tar.zst dexon-sol-tools-0de654bbd52f7d4702cec9f1a9a5a2cbb793181b.zip |
fix: scroll lag on doc reference and wiki pages by using react-scroll `spy` and only updating the sidebar menu items whose active state had changed
Diffstat (limited to 'packages/website/ts/pages/documentation')
-rw-r--r-- | packages/website/ts/pages/documentation/doc_page.tsx | 2 | ||||
-rw-r--r-- | packages/website/ts/pages/documentation/docs_home.tsx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/packages/website/ts/pages/documentation/doc_page.tsx b/packages/website/ts/pages/documentation/doc_page.tsx index 7157abfc9..28bf2dba1 100644 --- a/packages/website/ts/pages/documentation/doc_page.tsx +++ b/packages/website/ts/pages/documentation/doc_page.tsx @@ -6,13 +6,13 @@ import { SupportedDocJson, TypeDocUtils, } from '@0x/react-docs'; -import { NestedSidebarMenu } from '@0x/react-shared'; import findVersions = require('find-versions'); import * as _ from 'lodash'; import CircularProgress from 'material-ui/CircularProgress'; import * as React from 'react'; import semverSort = require('semver-sort'); import { SidebarHeader } from 'ts/components/documentation/sidebar_header'; +import { NestedSidebarMenu } from 'ts/components/nested_sidebar_menu'; import { Container } from 'ts/components/ui/container'; import { DevelopersPage } from 'ts/pages/documentation/developers_page'; import { Dispatcher } from 'ts/redux/dispatcher'; diff --git a/packages/website/ts/pages/documentation/docs_home.tsx b/packages/website/ts/pages/documentation/docs_home.tsx index cf229cb3b..298b7ecf3 100644 --- a/packages/website/ts/pages/documentation/docs_home.tsx +++ b/packages/website/ts/pages/documentation/docs_home.tsx @@ -1,8 +1,9 @@ -import { ALink, colors, Link, NestedSidebarMenu } from '@0x/react-shared'; +import { ALink, colors, Link } from '@0x/react-shared'; import { ObjectMap } from '@0x/types'; import * as _ from 'lodash'; import * as React from 'react'; import { OverviewContent } from 'ts/components/documentation/overview_content'; +import { NestedSidebarMenu } from 'ts/components/nested_sidebar_menu'; import { Button } from 'ts/components/ui/button'; import { DevelopersPage } from 'ts/pages/documentation/developers_page'; import { Dispatcher } from 'ts/redux/dispatcher'; |