diff --git a/packages/client/src/components/dialogs/CreateEditRoomDialog/CreateRoomDialog.js b/packages/client/src/components/dialogs/CreateEditRoomDialog/CreateRoomDialog.js
index 50988c27c2..d895013053 100644
--- a/packages/client/src/components/dialogs/CreateEditRoomDialog/CreateRoomDialog.js
+++ b/packages/client/src/components/dialogs/CreateEditRoomDialog/CreateRoomDialog.js
@@ -34,28 +34,6 @@ import TagHandler from "./handlers/TagHandler";
import SetRoomParams from "./sub-components/SetRoomParams";
import RoomTypeList from "./sub-components/RoomTypeList";
-const StyledModalDialog = styled(ModalDialog)`
- .header-with-button {
- display: flex;
- align-items: center;
- flex-direction: row;
- gap: 12px;
- }
-
- .sharing_panel-arrow svg {
- ${({ theme }) =>
- theme.interfaceDirection === "rtl" && `transform: scaleX(-1);`}
- }
-
- ${(props) =>
- props.isOauthWindowOpen &&
- css`
- #modal-dialog {
- display: none;
- }
- `}
-`;
-
const CreateRoomDialog = ({
t,
visible,
@@ -165,14 +143,14 @@ const CreateRoomDialog = ({
: t("Files:CreateRoom");
return (
-
@@ -226,7 +204,7 @@ const CreateRoomDialog = ({
/>
)}
-
+
);
};
diff --git a/packages/shared/components/modal-dialog/ModalDialog.tsx b/packages/shared/components/modal-dialog/ModalDialog.tsx
index 7421f2009c..3cc739327b 100644
--- a/packages/shared/components/modal-dialog/ModalDialog.tsx
+++ b/packages/shared/components/modal-dialog/ModalDialog.tsx
@@ -88,6 +88,7 @@ const ModalDialog = ({
withFooterBorder = false,
containerVisible = false,
withoutPadding = false,
+ hideContent = false,
...rest
}: ModalDialogProps) => {
@@ -177,6 +178,7 @@ const ModalDialog = ({
embedded={embedded}
blur={blur}
withoutPadding={withoutPadding}
+ hideContent={hideContent}
{...rest}
/>
}
diff --git a/packages/shared/components/modal-dialog/ModalDialog.types.ts b/packages/shared/components/modal-dialog/ModalDialog.types.ts
index 7de3eb10dc..99ca667664 100644
--- a/packages/shared/components/modal-dialog/ModalDialog.types.ts
+++ b/packages/shared/components/modal-dialog/ModalDialog.types.ts
@@ -92,6 +92,7 @@ export interface ModalDialogProps {
embedded?: boolean;
withForm?: boolean;
withoutPadding?: boolean;
+ hideContent?: boolean;
blur?: number;
}
@@ -162,5 +163,6 @@ export type ModalSubComponentsProps = AsideHeaderProps & {
embedded?: boolean;
withForm?: boolean;
withoutPadding?: boolean;
+ hideContent?: boolean;
blur?: number;
};
diff --git a/packages/shared/components/modal-dialog/sub-components/Modal.tsx b/packages/shared/components/modal-dialog/sub-components/Modal.tsx
index efee049498..78cbf5f38a 100644
--- a/packages/shared/components/modal-dialog/sub-components/Modal.tsx
+++ b/packages/shared/components/modal-dialog/sub-components/Modal.tsx
@@ -70,6 +70,7 @@ const Modal = ({
withForm,
blur,
withoutPadding,
+ hideContent,
...rest
}: ModalSubComponentsProps) => {
@@ -146,92 +147,94 @@ const Modal = ({
style={style}
onMouseDown={validateOnMouseDown}
>
-
- {isLoading ? (
- currentDisplayType === "modal" ? (
-
- ) : (
-
- )
- ) : container &&
- containerVisible &&
- currentDisplayType !== "modal" ? (
- containerComponent
- ) : (
-
- {header && (
-
- )}
-
- {body && (
-
- {currentDisplayType === "aside" && withBodyScroll ? (
-
- {bodyComponent}
-
- ) : (
- bodyComponent
- )}
-
- )}
- {footer && (
-
+ {isLoading ? (
+ currentDisplayType === "modal" ? (
+
- {footerComponent}
-
- )}
-
- )}
-
+ />
+ ) : (
+
+ )
+ ) : container &&
+ containerVisible &&
+ currentDisplayType !== "modal" ? (
+ containerComponent
+ ) : (
+
+ {header && (
+
+ )}
+
+ {body && (
+
+ {currentDisplayType === "aside" && withBodyScroll ? (
+
+ {bodyComponent}
+
+ ) : (
+ bodyComponent
+ )}
+
+ )}
+ {footer && (
+
+ {footerComponent}
+
+ )}
+
+ )}
+
+ )}