forked from coracle/flotilla
Fix self-closing tags
This commit is contained in:
+4
-4
@@ -1,4 +1,4 @@
|
||||
import type {ComponentType} from "svelte"
|
||||
import type {Component} from "svelte"
|
||||
import {writable} from "svelte/store"
|
||||
import {randomId, always, assoc, Emitter} from "@welshman/lib"
|
||||
import {goto} from "$app/navigation"
|
||||
@@ -12,7 +12,7 @@ export type ModalOptions = {
|
||||
|
||||
export type Modal = {
|
||||
id: string
|
||||
component: ComponentType
|
||||
component: Component
|
||||
props: Record<string, any>
|
||||
options: ModalOptions
|
||||
}
|
||||
@@ -22,7 +22,7 @@ export const emitter = new Emitter()
|
||||
export const modals = writable<Record<string, Modal>>({})
|
||||
|
||||
export const pushModal = (
|
||||
component: ComponentType,
|
||||
component: Component,
|
||||
props: Record<string, any> = {},
|
||||
options: ModalOptions = {},
|
||||
) => {
|
||||
@@ -37,7 +37,7 @@ export const pushModal = (
|
||||
}
|
||||
|
||||
export const pushDrawer = (
|
||||
component: ComponentType,
|
||||
component: Component,
|
||||
props: Record<string, any> = {},
|
||||
options: ModalOptions = {},
|
||||
) => pushModal(component, props, {...options, drawer: true})
|
||||
|
||||
Reference in New Issue
Block a user