fixed sensorConfiguration
This commit is contained in:
parent
c1e6e004ea
commit
39e8242c6d
|
@ -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));
|
||||||
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user