2020-04-10 01:01:46 +08:00
|
|
|
import React from 'react';
|
2021-03-26 05:22:50 +08:00
|
|
|
import _ from 'lodash';
|
2020-04-10 01:01:46 +08:00
|
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
2022-02-15 23:54:55 +08:00
|
|
|
import { withModalMounter } from '/imports/ui/components/common/modal/service';
|
2021-03-26 05:22:50 +08:00
|
|
|
import Settings from '/imports/ui/services/settings';
|
2020-04-10 01:01:46 +08:00
|
|
|
import ConnectionStatusService from '../service';
|
|
|
|
import ConnectionStatusComponent from './component';
|
|
|
|
|
|
|
|
const connectionStatusContainer = props => <ConnectionStatusComponent {...props} />;
|
|
|
|
|
|
|
|
export default withModalMounter(withTracker(({ mountModal }) => ({
|
2021-03-26 05:22:50 +08:00
|
|
|
closeModal: (dataSaving, intl) => {
|
|
|
|
ConnectionStatusService.updateDataSavingSettings(dataSaving, intl);
|
|
|
|
mountModal(null);
|
|
|
|
},
|
2020-04-10 01:01:46 +08:00
|
|
|
connectionStatus: ConnectionStatusService.getConnectionStatus(),
|
2021-03-26 05:22:50 +08:00
|
|
|
dataSaving: _.clone(Settings.dataSaving),
|
2020-04-10 01:01:46 +08:00
|
|
|
}))(connectionStatusContainer));
|