add ipcam file

This commit is contained in:
Jay
2017-03-27 14:53:34 +08:00
parent 1df91aac09
commit 37d854334d
3 changed files with 58 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import {connect} from 'react-redux';
import {add_dialog_msg, toggle_loading} from '../../actions';
import IPCamPage from '../../components/AdminPage/IPCam';
const mapStateToProps = (state) => ({
i18n: state.i18n
});
const mapDispatchToProps = (dispatch, ownProps) => ({
showDialog: (msg) => {
dispatch(add_dialog_msg(msg));
},
toggleLoading: (flag = false) => {
dispatch(toggle_loading(flag));
}
})
export default connect(mapStateToProps, mapDispatchToProps)(IPCamPage);