Fix self-closing tags

This commit is contained in:
Jon Staab
2025-02-03 15:01:42 -08:00
parent 34477e8ea6
commit cfbff94b4c
26 changed files with 46 additions and 37 deletions
+4 -4
View File
@@ -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})