fixed lint

This commit is contained in:
snoop 2017-07-20 13:11:09 +09:00
parent f199f32899
commit a15001433e
2 changed files with 16 additions and 7 deletions

View File

@ -253,7 +253,7 @@ export class CrawlerSelector extends React.Component<CrawlerSelectorProps, Crawl
} }
export interface CrawlerAuthInputsProps { export interface CrawlerAuthInputsProps {
crawler: MetaCrawler; crawler?: MetaCrawler;
} }
export interface CrawlerAuthInputsState { export interface CrawlerAuthInputsState {

View File

@ -2,17 +2,18 @@ import * as React from 'react';
import { Table, Button, Modal, Input, Header, Container, InputOnChangeData, ButtonProps } from 'semantic-ui-react'; import { Table, Button, Modal, Input, Header, Container, InputOnChangeData, ButtonProps } from 'semantic-ui-react';
import { TargetDetails } from './TargetDetails'; import { TargetDetails } from './TargetDetails';
import Target from '@overflow/target/api/model/Target';
export interface Props { export interface TargetsProps {
} }
export interface State { export interface TargetsState {
selected: boolean; selected: boolean;
openAddTarget: boolean; openAddTarget: boolean;
} }
export class Targets extends React.Component<Props, State> { export class Targets extends React.Component<TargetsProps, TargetsState> {
constructor(props: any, context: any) { constructor(props: any, context: any) {
super(props, context); super(props, context);
@ -65,8 +66,16 @@ export class Targets extends React.Component<Props, State> {
} }
} }
export interface TargetTableProps {
export class TargetTable extends React.Component<any, any> { }
export interface TargetTableState {
list: Array<Target>;
selected: object;
}
export class TargetTable extends React.Component<TargetTableProps, TargetTableState> {
private data: any; private data: any;
constructor(props: any, context: any) { constructor(props: any, context: any) {
@ -112,10 +121,10 @@ export class TargetTable extends React.Component<any, any> {
</Table.Header> </Table.Header>
<Table.Body> <Table.Body>
{this.state.list.map((target: any, index: number) => ( {this.state.list.map((target: Target, index: number) => (
<Table.Row key={index} onClick={this.handleSelect.bind(this, target)}> <Table.Row key={index} onClick={this.handleSelect.bind(this, target)}>
<Table.Cell textAlign={'center'}>{index + 1}</Table.Cell> <Table.Cell textAlign={'center'}>{index + 1}</Table.Cell>
<Table.Cell textAlign={'center'}>{target.infra.metaInfraType.name}</Table.Cell> <Table.Cell textAlign={'center'}>{target.infra.type.name}</Table.Cell>
<Table.Cell>todo</Table.Cell> <Table.Cell>todo</Table.Cell>
<Table.Cell>todo</Table.Cell> <Table.Cell>todo</Table.Cell>
</Table.Row> </Table.Row>