aboutsummaryrefslogtreecommitdiff
path: root/src/utils/modal.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/modal.tsx')
-rw-r--r--src/utils/modal.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/modal.tsx b/src/utils/modal.tsx
index 05baa8e..f59c26c 100644
--- a/src/utils/modal.tsx
+++ b/src/utils/modal.tsx
@@ -18,11 +18,11 @@ let modalId = 1337;
*/
export function openModal(Component: React.ComponentType, modalProps: Record<string, any>) {
let key = `Vencord${modalId++}`;
- modals.openModal(props =>
+ modals.openModal(props => (
<Modal.ModalRoot {...props} {...modalProps}>
<Component />
</Modal.ModalRoot>
- , { modalKey: key });
+ ), { modalKey: key });
return key;
};