aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-04 00:23:43 +0800
committerFabio Berger <me@fabioberger.com>2018-10-04 00:23:43 +0800
commit46764c2d3f491e7558eede0f501c767c6e57f568 (patch)
treebc6d2640c680d6dd9496d84b959d66617ca4f6ce /packages/react-shared
parenta7955c0964f3debaeaf77a58cdc5309535ad0ec0 (diff)
downloaddexon-sol-tools-46764c2d3f491e7558eede0f501c767c6e57f568.tar
dexon-sol-tools-46764c2d3f491e7558eede0f501c767c6e57f568.tar.gz
dexon-sol-tools-46764c2d3f491e7558eede0f501c767c6e57f568.tar.bz2
dexon-sol-tools-46764c2d3f491e7558eede0f501c767c6e57f568.tar.lz
dexon-sol-tools-46764c2d3f491e7558eede0f501c767c6e57f568.tar.xz
dexon-sol-tools-46764c2d3f491e7558eede0f501c767c6e57f568.tar.zst
dexon-sol-tools-46764c2d3f491e7558eede0f501c767c6e57f568.zip
Fix linter
Diffstat (limited to 'packages/react-shared')
-rw-r--r--packages/react-shared/src/components/nested_sidebar_menu.tsx6
-rw-r--r--packages/react-shared/src/index.ts10
-rw-r--r--packages/react-shared/src/types.ts4
3 files changed, 4 insertions, 16 deletions
diff --git a/packages/react-shared/src/components/nested_sidebar_menu.tsx b/packages/react-shared/src/components/nested_sidebar_menu.tsx
index c871e77d4..ec42c8265 100644
--- a/packages/react-shared/src/components/nested_sidebar_menu.tsx
+++ b/packages/react-shared/src/components/nested_sidebar_menu.tsx
@@ -3,7 +3,7 @@ import * as _ from 'lodash';
import MenuItem from 'material-ui/MenuItem';
import * as React from 'react';
-import { ALink, LinkType, Styles } from '../types';
+import { ALink, Styles } from '../types';
import { colors } from '../utils/colors';
import { constants } from '../utils/constants';
import { utils } from '../utils/utils';
@@ -127,9 +127,9 @@ export class NestedSidebarMenu extends React.Component<NestedSidebarMenuProps, N
) {
return null;
}
- return this._renderMenuSubsectionsBySection(menuItemName, this.props.subsectionNameToLinks[menuItemName]);
+ return this._renderSubsectionsLinks(menuItemName, this.props.subsectionNameToLinks[menuItemName]);
}
- private _renderMenuSubsectionsBySection(menuItemName: string, links: ALink[]): React.ReactNode {
+ private _renderSubsectionsLinks(menuItemName: string, links: ALink[]): React.ReactNode {
return (
<ul style={{ margin: 0, listStyleType: 'none', paddingLeft: 0 }} key={menuItemName}>
{_.map(links, link => {
diff --git a/packages/react-shared/src/index.ts b/packages/react-shared/src/index.ts
index 793214a87..1842e8af3 100644
--- a/packages/react-shared/src/index.ts
+++ b/packages/react-shared/src/index.ts
@@ -6,15 +6,7 @@ export { NestedSidebarMenu } from './components/nested_sidebar_menu';
export { SectionHeader } from './components/section_header';
export { Link } from './components/link';
-export {
- HeaderSizes,
- Styles,
- MenuSubsectionsBySection,
- EtherscanLinkSuffixes,
- Networks,
- LinkType,
- ALink,
-} from './types';
+export { HeaderSizes, Styles, EtherscanLinkSuffixes, Networks, LinkType, ALink } from './types';
export { utils } from './utils/utils';
export { constants } from './utils/constants';
diff --git a/packages/react-shared/src/types.ts b/packages/react-shared/src/types.ts
index b3dd4045b..daae7b115 100644
--- a/packages/react-shared/src/types.ts
+++ b/packages/react-shared/src/types.ts
@@ -8,10 +8,6 @@ export enum HeaderSizes {
H3 = 'h3',
}
-export interface MenuSubsectionsBySection {
- [section: string]: string[];
-}
-
export enum EtherscanLinkSuffixes {
Address = 'address',
Tx = 'tx',