refactor: migrate modals to use StackRouter, removed ComponentStack

temp reworked modals to use stackrouter, modals are now *chefs kiss*, removed compstack completely
This commit is contained in:
Aleksi Lassila
2026-02-09 18:44:44 +02:00
parent 0e08aa2d6f
commit a4f9ab71a6
15 changed files with 82 additions and 444 deletions

View File

@@ -1,9 +1,11 @@
<script>
import Dialog from '../Dialog/Dialog.svelte';
import TmdbIntegrationConnect from './TmdbIntegrationConnect.svelte';
import { modalStack } from '../Modal/modal.store';
import { useComponentStack } from '../StackRouter/stack-router.store';
const { close } = useComponentStack();
</script>
<Dialog>
<TmdbIntegrationConnect on:connected={() => modalStack.closeTopmost()} />
<TmdbIntegrationConnect on:connected={() => close()} />
</Dialog>