fixed sensorConfiguration

This commit is contained in:
snoop 2017-07-21 12:31:29 +09:00
parent c1e6e004ea
commit 39e8242c6d

View File

@ -6,6 +6,10 @@ import {
} from './components/SensorConfiguration'; } from './components/SensorConfiguration';
// import State from '../redux/state/ReadAllByTarget'; // import State from '../redux/state/ReadAllByTarget';
import Target from '@overflow/target/api/model/Target';
import Sensor from '@overflow/sensor/api/model/Sensor';
import MetaSensorItem from '@overflow/meta/api/model/MetaSensorItem';
// import * as ReadAllByTargetActions from '../redux/action/read_all_by_target'; // import * as ReadAllByTargetActions from '../redux/action/read_all_by_target';
// FIXME::.... // FIXME::....
@ -16,6 +20,19 @@ export function mapStateToProps(state: any): SensorConfigurationStateProps {
export function mapDispatchToProps(dispatch: Dispatch<any>): SensorConfigurationDispatchProps { export function mapDispatchToProps(dispatch: Dispatch<any>): SensorConfigurationDispatchProps {
return { return {
onReadAllByCrawler: (target: Target) => {
// dispatch(ReadActions.request(id));
},
onCheckCrawlerAuth: (authInfo: string) => {
// dispatch(ReadActions.request(id));
},
// FIXME::how to sensor item?
onReadSensorItem: () => {
// dispatch(ReadActions.request(id));
},
onSaveSensor: (sensor: Sensor) => {
// dispatch(ReadActions.request(id));
},
}; };
} }