Fix more stuff, particularly event handlers

This commit is contained in:
Jon Staab
2025-02-03 17:21:46 -08:00
parent 8d3433b167
commit 24045a7e2a
150 changed files with 424 additions and 392 deletions
+7 -7
View File
@@ -3,14 +3,14 @@
import {formatTimestamp, formatTimestampAsDate, formatTimestampAsTime} from "@welshman/app"
import Icon from "@lib/components/Icon.svelte"
let {event} = $props()
const {event} = $props()
let meta = $derived(fromPairs(event.tags) as Record<string, string>)
let end = $derived(parseInt(meta.end))
let start = $derived(parseInt(meta.start))
let startDateDisplay = $derived(formatTimestampAsDate(start))
let endDateDisplay = $derived(formatTimestampAsDate(end))
let isSingleDay = $derived(startDateDisplay === endDateDisplay)
const meta = $derived(fromPairs(event.tags) as Record<string, string>)
const end = $derived(parseInt(meta.end))
const start = $derived(parseInt(meta.start))
const startDateDisplay = $derived(formatTimestampAsDate(start))
const endDateDisplay = $derived(formatTimestampAsDate(end))
const isSingleDay = $derived(startDateDisplay === endDateDisplay)
</script>
<div class="card2 flex items-center justify-between gap-2">