Merge pull request #7568 from antobinary/callback-broken

Pass callback for closing of permissions-overlay
This commit is contained in:
Anton Georgiev 2019-06-04 13:56:07 -04:00 committed by GitHub
commit 66d35a940d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -442,7 +442,7 @@ class AudioModal extends Component {
return ( return (
<span> <span>
{showPermissionsOvelay ? <PermissionsOverlay /> : null} {showPermissionsOvelay ? <PermissionsOverlay closeModal={closeModal} /> : null}
<Modal <Modal
overlayClassName={styles.overlay} overlayClassName={styles.overlay}
className={styles.modal} className={styles.modal}

View File

@ -1,10 +1,12 @@
import React from 'react'; import React from 'react';
import { injectIntl, intlShape, defineMessages } from 'react-intl'; import { injectIntl, intlShape, defineMessages } from 'react-intl';
import Modal from '/imports/ui/components/modal/simple/component'; import Modal from '/imports/ui/components/modal/simple/component';
import PropTypes from 'prop-types';
import { styles } from './styles'; import { styles } from './styles';
const propTypes = { const propTypes = {
intl: intlShape.isRequired, intl: intlShape.isRequired,
closeModal: PropTypes.func.isRequired,
}; };
const intlMessages = defineMessages({ const intlMessages = defineMessages({