add ipcam set page

This commit is contained in:
Jay
2017-05-03 11:16:01 +08:00
parent 27cd09220e
commit 9ed476df9c
7 changed files with 348 additions and 53 deletions
+9 -6
View File
@@ -1,17 +1,20 @@
import {connect} from 'react-redux';
import {add_dialog_msg, toggle_loading} from '../../actions';
import { connect } from 'react-redux';
import { add_dialog_msg, toggle_loading, add_confirm } from '../../actions';
import IPCamPage from '../../components/AdminPage/IPCam';
const mapStateToProps = (state) => ({
i18n: state.i18n
i18n: state.i18n
});
const mapDispatchToProps = (dispatch, ownProps) => ({
showDialog: (msg) => {
dispatch(add_dialog_msg(msg));
},
showDialog: (msg) => {
dispatch(add_dialog_msg(msg));
},
toggleLoading: (flag = false) => {
dispatch(toggle_loading(flag));
},
callConfirm: (msg, act = null) => {
dispatch(add_confirm(msg, act));
}
})