feat: render emoji packs and goals in cards

This commit is contained in:
Alejandro Gomez
2023-07-26 16:13:47 +02:00
parent 7a6f4048fb
commit 59cf6506e0
21 changed files with 537 additions and 76 deletions

View File

@ -62,7 +62,7 @@ export function ProfilePage() {
}, [streams]);
const futureStreams = useMemo(() => {
return streams.filter(
(ev) => findTag(ev, "status") === StreamState.Planned
(ev) => findTag(ev, "status") === StreamState.Planned,
);
}, [streams]);
const isLive = Boolean(liveEvent);
@ -75,7 +75,7 @@ export function ProfilePage() {
d,
undefined,
liveEvent.kind,
liveEvent.pubkey
liveEvent.pubkey,
);
navigate(`/${naddr}`);
}
@ -114,7 +114,7 @@ export function ProfilePage() {
liveEvent
? `${liveEvent.kind}:${liveEvent.pubkey}:${findTag(
liveEvent,
"d"
"d",
)}`
: undefined
}
@ -171,7 +171,7 @@ export function ProfilePage() {
<span className="timestamp">
Streamed on{" "}
{moment(Number(ev.created_at) * 1000).format(
"MMM DD, YYYY"
"MMM DD, YYYY",
)}
</span>
</div>
@ -186,7 +186,7 @@ export function ProfilePage() {
<span className="timestamp">
Scheduled for{" "}
{moment(Number(ev.created_at) * 1000).format(
"MMM DD, YYYY h:mm:ss a"
"MMM DD, YYYY h:mm:ss a",
)}
</span>
</div>