prettier: format project

This commit is contained in:
James Xylight committed 2025-09-06 22:25:07 -07:00
1 parent e7dd3e8dac
commit cbd27a38a0
94 files changed
+261 -252

No files matched your search

+4 -4
View File
@@ -40,8 +40,8 @@ export function toast({
}) {
let id = 0
toasts.update(toasts => {
id = Math.max(0, ...toasts.map(t => t.id)) + 1
toasts.update((toasts) => {
id = Math.max(0, ...toasts.map((t) => t.id)) + 1
return [
...toasts,
@@ -58,11 +58,11 @@ export function toast({
})
setTimeout(() => {
toasts.update(toasts => toasts.filter(toast => toast.id != id))
toasts.update((toasts) => toasts.filter((toast) => toast.id != id))
}, duration)
return id
}
export const removeToast = (id: number) =>
toasts.update(toasts => toasts.filter(toast => toast.id != id))
toasts.update((toasts) => toasts.filter((toast) => toast.id != id))