diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-04 00:03:05 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-04 00:03:05 +0800 |
commit | 8d6bffa96ca26e59b0c10f9f46f6f1e03e3518e9 (patch) | |
tree | 27d79e05e1333f0d37f324a281b2b46e53036377 /packages/react-shared/src/components | |
parent | 72b1c60f392c8c8fc445223f2149ca3a62a83fed (diff) | |
download | dexon-sol-tools-8d6bffa96ca26e59b0c10f9f46f6f1e03e3518e9.tar dexon-sol-tools-8d6bffa96ca26e59b0c10f9f46f6f1e03e3518e9.tar.gz dexon-sol-tools-8d6bffa96ca26e59b0c10f9f46f6f1e03e3518e9.tar.bz2 dexon-sol-tools-8d6bffa96ca26e59b0c10f9f46f6f1e03e3518e9.tar.lz dexon-sol-tools-8d6bffa96ca26e59b0c10f9f46f6f1e03e3518e9.tar.xz dexon-sol-tools-8d6bffa96ca26e59b0c10f9f46f6f1e03e3518e9.tar.zst dexon-sol-tools-8d6bffa96ca26e59b0c10f9f46f6f1e03e3518e9.zip |
Use nestedSidebarMenu component for Dev home
Diffstat (limited to 'packages/react-shared/src/components')
-rw-r--r-- | packages/react-shared/src/components/nested_sidebar_menu.tsx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/packages/react-shared/src/components/nested_sidebar_menu.tsx b/packages/react-shared/src/components/nested_sidebar_menu.tsx index 2242349df..c871e77d4 100644 --- a/packages/react-shared/src/components/nested_sidebar_menu.tsx +++ b/packages/react-shared/src/components/nested_sidebar_menu.tsx @@ -94,7 +94,12 @@ export class NestedSidebarMenu extends React.Component<NestedSidebarMenuProps, N : link.title; return ( <div key={`menuItem-${finalMenuItemName}`}> - <Link to={link.to} type={LinkType.ReactScroll} containerId={constants.DOCS_CONTAINER_ID}> + <Link + to={link.to} + type={link.type} + shouldOpenInNewTab={link.shouldOpenInNewTab} + containerId={constants.DOCS_CONTAINER_ID} + > <MenuItem style={menuItemStyles} innerDivStyle={menuItemInnerDivStyles} @@ -131,7 +136,12 @@ export class NestedSidebarMenu extends React.Component<NestedSidebarMenuProps, N const name = `${menuItemName}-${link.title}`; return ( <li key={`menuSubsectionItem-${name}`}> - <Link to={link.to} type={LinkType.ReactScroll} containerId={constants.DOCS_CONTAINER_ID}> + <Link + to={link.to} + type={link.type} + shouldOpenInNewTab={link.shouldOpenInNewTab} + containerId={constants.DOCS_CONTAINER_ID} + > <MenuItem style={{ minHeight: 35 }} innerDivStyle={{ |