80cc39aa7a
Presently, the end meeting confirmation screen is a simple modal which can quickly be ignored and thus has unintended consequences for the meeting users. This commit attempts to fix this by improving the modal to better reflect the consequences of ending the meeting.
22 lines
615 B
JavaScript
22 lines
615 B
JavaScript
import React from 'react';
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
|
import { withModalMounter } from '/imports/ui/components/modal/service';
|
|
import { makeCall } from '/imports/ui/services/api';
|
|
import EndMeetingComponent from './component';
|
|
import Service from './service';
|
|
|
|
const EndMeetingContainer = props => <EndMeetingComponent {...props} />;
|
|
|
|
export default withModalMounter(withTracker(({ mountModal }) => ({
|
|
closeModal: () => {
|
|
mountModal(null);
|
|
},
|
|
|
|
endMeeting: () => {
|
|
makeCall('endMeeting');
|
|
mountModal(null);
|
|
},
|
|
|
|
users: Service.getUsers(),
|
|
}))(EndMeetingContainer));
|