aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
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/website
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/website')
-rw-r--r--packages/website/ts/components/documentation/docs_top_bar.tsx (renamed from packages/website/ts/components/documentation/docs_content_top_bar.tsx)10
-rw-r--r--packages/website/ts/pages/documentation/home.tsx5
2 files changed, 7 insertions, 8 deletions
diff --git a/packages/website/ts/components/documentation/docs_content_top_bar.tsx b/packages/website/ts/components/documentation/docs_top_bar.tsx
index 04385cfdb..6a050d398 100644
--- a/packages/website/ts/components/documentation/docs_content_top_bar.tsx
+++ b/packages/website/ts/components/documentation/docs_top_bar.tsx
@@ -9,13 +9,13 @@ import { Deco, Key, WebsitePaths } from 'ts/types';
import { constants } from 'ts/utils/constants';
import { Translate } from 'ts/utils/translate';
-export interface DocsContentTopBarProps {
+export interface DocsTopBarProps {
location: Location;
translate: Translate;
sectionNameToLinks?: ObjectMap<ALink[]>;
}
-interface DocsContentTopBarState {
+interface DocsTopBarState {
isDrawerOpen: boolean;
}
@@ -26,14 +26,14 @@ interface MenuItemInfo {
textStyle: React.CSSProperties;
}
-export class DocsContentTopBar extends React.Component<DocsContentTopBarProps, DocsContentTopBarState> {
- constructor(props: DocsContentTopBarProps) {
+export class DocsTopBar extends React.Component<DocsTopBarProps, DocsTopBarState> {
+ constructor(props: DocsTopBarProps) {
super(props);
this.state = {
isDrawerOpen: false,
};
}
- public componentWillReceiveProps(nextProps: DocsContentTopBarProps): void {
+ public componentWillReceiveProps(nextProps: DocsTopBarProps): void {
if (nextProps.location.pathname !== this.props.location.pathname) {
this.setState({
isDrawerOpen: false,
diff --git a/packages/website/ts/pages/documentation/home.tsx b/packages/website/ts/pages/documentation/home.tsx
index 7c0bf433e..c0b50fab7 100644
--- a/packages/website/ts/pages/documentation/home.tsx
+++ b/packages/website/ts/pages/documentation/home.tsx
@@ -10,13 +10,12 @@ import {
} from '@0xproject/react-shared';
import { ObjectMap } from '@0xproject/types';
import * as _ from 'lodash';
-import MenuItem from 'material-ui/MenuItem';
import * as React from 'react';
import DocumentTitle = require('react-document-title');
import * as ReactMarkdown from 'react-markdown';
import { Element as ScrollElement } from 'react-scroll';
-import { DocsContentTopBar } from 'ts/components/documentation/docs_content_top_bar';
import { DocsLogo } from 'ts/components/documentation/docs_logo';
+import { DocsTopBar } from 'ts/components/documentation/docs_top_bar';
import { TutorialButton } from 'ts/components/documentation/tutorial_button';
import { Container } from 'ts/components/ui/container';
import { Text } from 'ts/components/ui/text';
@@ -475,7 +474,7 @@ export class Home extends React.Component<HomeProps, HomeState> {
backgroundColor={colors.white}
>
<Container paddingLeft={mainContentPadding} paddingRight={mainContentPadding}>
- <DocsContentTopBar
+ <DocsTopBar
location={this.props.location}
translate={this.props.translate}
sectionNameToLinks={sectionNameToLinks}