From cf68a1de76c33ea688f6ec578c60bc13cb4f8610 Mon Sep 17 00:00:00 2001 From: snoop Date: Wed, 26 Jul 2017 15:33:29 +0900 Subject: [PATCH] fixed interval string -> number --- .../react/components/SensorConfiguration.tsx | 56 +++---------------- 1 file changed, 7 insertions(+), 49 deletions(-) diff --git a/src/ts/@overflow/sensor/react/components/SensorConfiguration.tsx b/src/ts/@overflow/sensor/react/components/SensorConfiguration.tsx index 4dacbbe..aa5afb1 100644 --- a/src/ts/@overflow/sensor/react/components/SensorConfiguration.tsx +++ b/src/ts/@overflow/sensor/react/components/SensorConfiguration.tsx @@ -370,63 +370,21 @@ export class CrawlerAuthInputs extends React.Component { - - constructor(props: any, context: any) { - super(props, context); - this.state = { - }; - } - - - public render(): JSX.Element { - return ( - - - - - - -
-
-
- - - - - - -
-
-
- -
- ); - } -} export interface ETCSelectorProps { } export interface ETCSelectorState { - interval: string; + interval: number; } export class ETCSelector extends React.Component { constructor(props: any, context: any) { super(props, context); - // this.state = { - // interval: 5, - // }; + this.state = { + interval: 5, + }; } public handleIntervalChange(e: any, { value }: any): void { this.setState({ interval: value }); @@ -446,7 +404,7 @@ export class ETCSelector extends React.Component @@ -455,7 +413,7 @@ export class ETCSelector extends React.Component @@ -464,7 +422,7 @@ export class ETCSelector extends React.Component