Merge pull request #7568 from antobinary/callback-broken
Pass callback for closing of permissions-overlay
This commit is contained in:
commit
66d35a940d
@ -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}
|
||||||
|
@ -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({
|
||||||
|
Loading…
Reference in New Issue
Block a user