Rename ThreadReply to EventReply

This commit is contained in:
Jon Staab
2025-02-06 10:24:31 -08:00
parent 7848859153
commit 1301c2c74f
5 changed files with 12 additions and 20 deletions
+1 -5
View File
@@ -12,11 +12,9 @@
const {
url,
event,
hideActions = false,
}: {
url: string
event: TrustedEvent
hideActions?: boolean
} = $props()
const meta = $derived(fromPairs(event.tags) as Record<string, string>)
@@ -40,8 +38,6 @@
<Content {event} expandMode="inline" quoteProps={{relays: [url]}} />
<div class="flex w-full flex-col items-end justify-between gap-2 sm:flex-row">
<EventPostedBy {event} />
{#if !hideActions}
<CalendarEventActions showActivity {url} {event} />
{/if}
<CalendarEventActions showActivity {url} {event} />
</div>
</Link>
+1 -5
View File
@@ -11,11 +11,9 @@
const {
url,
event,
hideActions = false,
}: {
url: string
event: TrustedEvent
hideActions?: boolean
} = $props()
const title = event.tags.find(nthEq(0, "title"))?.[1]
@@ -37,8 +35,6 @@
<Content {event} expandMode="inline" quoteProps={{relays: [url]}} />
<div class="flex w-full flex-col items-end justify-between gap-2 sm:flex-row">
<EventPostedBy {event} />
{#if !hideActions}
<ThreadActions showActivity {url} {event} />
{/if}
<ThreadActions showActivity {url} {event} />
</div>
</Link>