Updates for missing vars in components
This commit is contained in:
@@ -3,6 +3,7 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||
import { openModal } from '../../../actions/modal';
|
||||
import { cancelReplyCompose } from '../../../actions/compose';
|
||||
import ModalLayout from '../modal_layout';
|
||||
import TimelineComposeBlock from '../../timeline_compose_block';
|
||||
|
||||
const messages = defineMessages({
|
||||
confirm: { id: 'confirmations.delete.confirm', defaultMessage: 'Delete' },
|
||||
@@ -46,7 +47,7 @@ class ComposeModal extends ImmutablePureComponent {
|
||||
const { intl } = this.props;
|
||||
|
||||
return (
|
||||
<ModalLayout title={intl.formatMessage(messages.title)} onClose={onClickClose}>
|
||||
<ModalLayout title={intl.formatMessage(messages.title)} onClose={this.onClickClose}>
|
||||
<TimelineComposeBlock />
|
||||
</ModalLayout>
|
||||
);
|
||||
|
||||
@@ -16,7 +16,7 @@ class ModalLayout extends PureComponent {
|
||||
};
|
||||
|
||||
render() {
|
||||
const { title, children } = this.props;
|
||||
const { title, children, intl, onClose } = this.props;
|
||||
|
||||
return (
|
||||
<div className='modal modal--layout modal--root'>
|
||||
|
||||
Reference in New Issue
Block a user