chore: more flexible modal manager types (#19123)

* fix: required argument in onClose modal function

* chore: more flexible modal manager types
This commit is contained in:
Daniel Dietzler
2025-06-12 00:32:49 +02:00
committed by GitHub
parent 5179c5badf
commit 22eef5f3c5
11 changed files with 21 additions and 16 deletions
@@ -18,7 +18,7 @@
const { clearSelect, getOwnedAssets } = getAssetControlContext();
const handleUpdateDescription = async () => {
const description = await modalManager.show(AssetUpdateDecriptionConfirmModal, {});
const description = await modalManager.show(AssetUpdateDecriptionConfirmModal);
if (description) {
const ids = getSelectedAssets(getOwnedAssets(), $user);
@@ -703,7 +703,7 @@
}
isShortcutModalOpen = true;
await modalManager.show(ShortcutsModal, {});
await modalManager.show(ShortcutsModal);
isShortcutModalOpen = false;
};