mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-27 11:05:13 +02:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user