ManageGroupModal --> CreateGroupModal
This commit is contained in:
parent
9d0ff2b8a4
commit
c9a724525e
5 changed files with 9 additions and 9 deletions
|
@ -33,7 +33,7 @@ const Groups: React.FC = () => {
|
|||
const { groups, isLoading } = useGroups(debouncedValue);
|
||||
|
||||
const createGroup = () => {
|
||||
dispatch(openModal('MANAGE_GROUP'));
|
||||
dispatch(openModal('CREATE_GROUP'));
|
||||
};
|
||||
|
||||
const renderBlankslate = () => (
|
||||
|
|
|
@ -26,7 +26,7 @@ import {
|
|||
LandingPageModal,
|
||||
ListAdder,
|
||||
ListEditor,
|
||||
ManageGroupModal,
|
||||
CreateGroupModal,
|
||||
MediaModal,
|
||||
MentionsModal,
|
||||
MissingDescriptionModal,
|
||||
|
@ -59,6 +59,7 @@ const MODAL_COMPONENTS = {
|
|||
'COMPOSE': ComposeModal,
|
||||
'COMPOSE_EVENT': ComposeEventModal,
|
||||
'CONFIRM': ConfirmationModal,
|
||||
'CREATE_GROUP': CreateGroupModal,
|
||||
'CRYPTO_DONATE': CryptoDonateModal,
|
||||
'DISLIKES': DislikesModal,
|
||||
'EDIT_ANNOUNCEMENT': EditAnnouncementModal,
|
||||
|
@ -73,7 +74,6 @@ const MODAL_COMPONENTS = {
|
|||
'LANDING_PAGE': LandingPageModal,
|
||||
'LIST_ADDER': ListAdder,
|
||||
'LIST_EDITOR': ListEditor,
|
||||
'MANAGE_GROUP': ManageGroupModal,
|
||||
'MEDIA': MediaModal,
|
||||
'MENTIONS': MentionsModal,
|
||||
'MISSING_DESCRIPTION': MissingDescriptionModal,
|
||||
|
|
|
@ -22,11 +22,11 @@ enum Steps {
|
|||
THREE = 'THREE',
|
||||
}
|
||||
|
||||
interface IManageGroupModal {
|
||||
interface ICreateGroupModal {
|
||||
onClose: (type?: string) => void
|
||||
}
|
||||
|
||||
const ManageGroupModal: React.FC<IManageGroupModal> = ({ onClose }) => {
|
||||
const CreateGroupModal: React.FC<ICreateGroupModal> = ({ onClose }) => {
|
||||
const intl = useIntl();
|
||||
const debounce = useDebounce;
|
||||
|
||||
|
@ -102,4 +102,4 @@ const ManageGroupModal: React.FC<IManageGroupModal> = ({ onClose }) => {
|
|||
);
|
||||
};
|
||||
|
||||
export default ManageGroupModal;
|
||||
export default CreateGroupModal;
|
|
@ -12,7 +12,7 @@ const NewGroupPanel = () => {
|
|||
const canCreateGroup = useAppSelector((state) => hasPermission(state, PERMISSION_CREATE_GROUPS));
|
||||
|
||||
const createGroup = () => {
|
||||
dispatch(openModal('MANAGE_GROUP'));
|
||||
dispatch(openModal('CREATE_GROUP'));
|
||||
};
|
||||
|
||||
if (!canCreateGroup) return null;
|
||||
|
|
|
@ -590,8 +590,8 @@ export function GroupMembershipRequests() {
|
|||
return import(/* webpackChunkName: "features/groups" */'../../group/group-membership-requests');
|
||||
}
|
||||
|
||||
export function ManageGroupModal() {
|
||||
return import(/* webpackChunkName: "features/manage_group_modal" */'../components/modals/manage-group-modal/manage-group-modal');
|
||||
export function CreateGroupModal() {
|
||||
return import(/* webpackChunkName: "features/groups" */'../components/modals/manage-group-modal/create-group-modal');
|
||||
}
|
||||
|
||||
export function NewGroupPanel() {
|
||||
|
|
Loading…
Reference in a new issue