refactor: modal manager types (#18150)

This commit is contained in:
Daniel Dietzler 2025-05-08 00:08:19 +02:00 committed by GitHub
parent 5250269fa4
commit 894545aeed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 32 additions and 26 deletions

View file

@ -196,7 +196,7 @@
}
const handleSettingsClick = async () => {
const settings = await modalManager.open(MapSettingsModal, { settings: { ...$mapSettings } });
const settings = await modalManager.show(MapSettingsModal, { settings: { ...$mapSettings } });
if (settings) {
const shouldUpdate = !isEqual(omit(settings, 'allowDarkMode'), omit($mapSettings, 'allowDarkMode'));
$mapSettings = settings;