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

38 lines
825 B
JavaScript
Raw Normal View History

2020-05-07 05:03:34 +01:00
import { defineMessages, injectIntl } from 'react-intl'
import ModalLayout from './modal_layout'
2020-05-07 06:55:24 +01:00
import GroupMembers from '../../features/group_members'
2020-05-07 05:03:34 +01:00
const messages = defineMessages({
2020-05-07 06:55:24 +01:00
title: { id: 'group_members', defaultMessage: 'Group members' },
2020-05-07 05:03:34 +01:00
})
export default
@injectIntl
2020-05-07 06:55:24 +01:00
class GroupMembersModal extends PureComponent {
2020-05-07 05:03:34 +01:00
static propTypes = {
2020-05-07 06:55:24 +01:00
groupId: PropTypes.string.isRequired,
2020-05-07 05:03:34 +01:00
intl: PropTypes.object.isRequired,
onClose: PropTypes.func.isRequired,
}
render() {
2020-05-07 06:55:24 +01:00
const {
intl,
onClose,
groupId,
} = this.props
2020-05-07 05:03:34 +01:00
return (
<ModalLayout
title={intl.formatMessage(messages.title)}
width={440}
onClose={onClose}
2020-05-07 06:55:24 +01:00
noPadding
2020-05-07 05:03:34 +01:00
>
2020-05-07 06:55:24 +01:00
<GroupMembers groupId={groupId} onCloseModal={onClose} />
2020-05-07 05:03:34 +01:00
</ModalLayout>
)
}
}