gab-social/app/javascript/gabsocial/components/modal/group_create_modal.js

33 lines
786 B
JavaScript
Raw Normal View History

2020-03-25 03:08:43 +00:00
import { defineMessages, injectIntl } from 'react-intl'
import ImmutablePureComponent from 'react-immutable-pure-component'
import ModalLayout from './modal_layout'
import GroupCreate from '../../features/group_create'
const messages = defineMessages({
2020-04-28 06:33:58 +01:00
title: { id: 'create_group', defaultMessage: 'Create group' },
2020-03-25 03:08:43 +00:00
})
export default
@injectIntl
class GroupCreateModal extends ImmutablePureComponent {
static propTypes = {
intl: PropTypes.object.isRequired,
2020-04-07 02:53:23 +01:00
onClose: PropTypes.func.isRequired,
2020-03-25 03:08:43 +00:00
}
render() {
2020-04-07 02:53:23 +01:00
const { intl, onClose } = this.props
2020-03-25 03:08:43 +00:00
return (
<ModalLayout
title={intl.formatMessage(messages.title)}
2020-04-28 06:33:58 +01:00
width={440}
2020-04-07 02:53:23 +01:00
onClose={onClose}
2020-03-25 03:08:43 +00:00
>
2020-04-08 04:22:24 +01:00
<GroupCreate onCloseModal={onClose} />
2020-03-25 03:08:43 +00:00
</ModalLayout>
)
}
}