fixed lint
This commit is contained in:
parent
f199f32899
commit
a15001433e
|
@ -253,7 +253,7 @@ export class CrawlerSelector extends React.Component<CrawlerSelectorProps, Crawl
|
|||
}
|
||||
|
||||
export interface CrawlerAuthInputsProps {
|
||||
crawler: MetaCrawler;
|
||||
crawler?: MetaCrawler;
|
||||
}
|
||||
|
||||
export interface CrawlerAuthInputsState {
|
||||
|
|
|
@ -2,17 +2,18 @@ import * as React from 'react';
|
|||
import { Table, Button, Modal, Input, Header, Container, InputOnChangeData, ButtonProps } from 'semantic-ui-react';
|
||||
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;
|
||||
openAddTarget: boolean;
|
||||
}
|
||||
|
||||
export class Targets extends React.Component<Props, State> {
|
||||
export class Targets extends React.Component<TargetsProps, TargetsState> {
|
||||
|
||||
constructor(props: any, context: any) {
|
||||
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;
|
||||
|
||||
constructor(props: any, context: any) {
|
||||
|
@ -112,10 +121,10 @@ export class TargetTable extends React.Component<any, any> {
|
|||
</Table.Header>
|
||||
|
||||
<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.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.Row>
|
||||
|
|
Loading…
Reference in New Issue
Block a user