Work on login screen

This commit is contained in:
Jon Staab
2024-08-09 16:22:09 -07:00
parent 51cfa5f0e8
commit 71d819edc7
32 changed files with 698 additions and 534 deletions
+7 -2
View File
@@ -1,7 +1,9 @@
import type {ComponentType} from "svelte"
import {randomId} from "@welshman/lib"
import {randomId, Emitter} from "@welshman/lib"
import {goto} from "$app/navigation"
export const emitter = new Emitter()
export const modals = new Map()
export const pushModal = (component: ComponentType, props: Record<string, any> = {}) => {
@@ -14,4 +16,7 @@ export const pushModal = (component: ComponentType, props: Record<string, any> =
return id
}
export const clearModal = () => goto('#')
export const clearModal = () => {
goto('#')
emitter.emit('close')
}