File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
- import { NDKEvent } from ' @nostr-dev-kit/ndk' ;
3
-
4
2
import ScrollArea from ' @/components/ui/scroll-area/scroll-area.svelte' ;
5
- import { formatTimeAgo } from ' @/helpers' ;
6
3
import type { Problem } from ' @/event_helpers/problems' ;
4
+ import { formatTimeAgo } from ' @/helpers' ;
7
5
export let items: Problem [];
8
6
export let bloom: false ; // todo
9
7
</script >
12
10
<div class =" flex flex-col gap-2 p-2 pt-0" >
13
11
{#each items as item }
14
12
<button
13
+ on:click ={() => {
14
+ console .log (item .event );
15
+ }}
15
16
class =" flex flex-col items-start gap-2 rounded-lg border p-3 text-left text-sm transition-all hover:bg-accent"
16
17
>
17
18
<div class =" flex w-full flex-col gap-1" >
23
24
{/if }
24
25
</div >
25
26
<div class =" ml-auto text-xs text-foreground" >
26
- {formatTimeAgo (new Date (item .event .created_at ))}
27
+ {formatTimeAgo (new Date (item .event .created_at * 1000 ))}
27
28
</div >
28
29
</div >
29
30
<div class ="text-xs font-medium" >{item .para }</div >
You can’t perform that action at this time.
0 commit comments