aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-04 00:03:05 +0800
committerFabio Berger <me@fabioberger.com>2018-10-04 00:03:05 +0800
commit8d6bffa96ca26e59b0c10f9f46f6f1e03e3518e9 (patch)
tree27d79e05e1333f0d37f324a281b2b46e53036377 /packages/react-shared
parent72b1c60f392c8c8fc445223f2149ca3a62a83fed (diff)
downloaddexon-sol-tools-8d6bffa96ca26e59b0c10f9f46f6f1e03e3518e9.tar.gz
dexon-sol-tools-8d6bffa96ca26e59b0c10f9f46f6f1e03e3518e9.tar.zst
dexon-sol-tools-8d6bffa96ca26e59b0c10f9f46f6f1e03e3518e9.zip
Use nestedSidebarMenu component for Dev home
Diffstat (limited to 'packages/react-shared')
-rw-r--r--packages/react-shared/src/components/nested_sidebar_menu.tsx14
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={{