From 1a18ae9dbc9b7c44204e14c8435442acf1a2ca75 Mon Sep 17 00:00:00 2001 From: insanity Date: Thu, 20 Jul 2017 14:01:03 +0900 Subject: [PATCH] test --- .../temp/react/components/NoauthProbes.tsx | 3 ++- .../temp/react/components/ProbeDetails.tsx | 18 +++++++++++------- .../temp/react/components/ProbeDown.tsx | 2 +- .../@overflow/temp/react/components/Probes.tsx | 7 ++++--- 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/ts/@overflow/temp/react/components/NoauthProbes.tsx b/src/ts/@overflow/temp/react/components/NoauthProbes.tsx index 83ee8db..369ce46 100644 --- a/src/ts/@overflow/temp/react/components/NoauthProbes.tsx +++ b/src/ts/@overflow/temp/react/components/NoauthProbes.tsx @@ -5,6 +5,7 @@ import { Table, Header, Container, } from 'semantic-ui-react'; +import NoAuthProbe from '@overflow/noauthprobe/api/model/NoAuthProbe'; export interface Props { @@ -19,7 +20,7 @@ export class NoauthProbes extends React.Component { private data: any; private selectedIds: Array; - constructor(props: any, context: any) { + constructor(props: Props, context: State) { super(props, context); this.state = { selected: [], diff --git a/src/ts/@overflow/temp/react/components/ProbeDetails.tsx b/src/ts/@overflow/temp/react/components/ProbeDetails.tsx index d2d3f45..9b278ca 100644 --- a/src/ts/@overflow/temp/react/components/ProbeDetails.tsx +++ b/src/ts/@overflow/temp/react/components/ProbeDetails.tsx @@ -7,10 +7,11 @@ import { Button, Container, } from 'semantic-ui-react'; import { TargetTable } from './Targets'; +import Probe from '@overflow/probe/api/model/Probe'; export interface Props { - probe: object; - onBack(): void; + probe: Probe; + onBack?(): void; } export interface State { @@ -19,7 +20,7 @@ export interface State { export class ProbeDetails extends React.Component { - constructor(props: any, context: any) { + constructor(props: Props, context: State) { super(props, context); this.state = { }; @@ -39,9 +40,10 @@ export class ProbeDetails extends React.Component { } } -export class ProbeBasicInfo extends React.Component { - constructor(props: any, context: any) { +export class ProbeBasicInfo extends React.Component { + + constructor(props: Props, context: State) { super(props, context); this.state = { }; @@ -60,7 +62,9 @@ export class ProbeBasicInfo extends React.Component { public showStartStopBtn(): JSX.Element { - if (this.props.probe.metaProbeStatus.name === 'STARTED') { + let temp: any = null; + temp = this.props.probe; + if (temp.metaProbeStatus.name === 'STARTED') { return