diff options
author | Ven <vendicated@riseup.net> | 2022-10-06 00:42:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 00:42:58 +0200 |
commit | 74c3930e0a5ed264f330bc32c27116ead1063c5d (patch) | |
tree | a29ba43787c8cf8bbee648b5b478a8152086f965 /src/utils/modal.tsx | |
parent | e563521416052808bcec57057b921f0c0b6ca594 (diff) | |
download | Vencord-74c3930e0a5ed264f330bc32c27116ead1063c5d.tar.gz Vencord-74c3930e0a5ed264f330bc32c27116ead1063c5d.tar.bz2 Vencord-74c3930e0a5ed264f330bc32c27116ead1063c5d.zip |
add eslint config (#53)
* eslint
* workflow
* lint main
Diffstat (limited to 'src/utils/modal.tsx')
-rw-r--r-- | src/utils/modal.tsx | 4 |
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; }; |