diff --git a/src/components/event/ProfileListItem.tsx b/src/components/event/ProfileListItem.tsx index 711c957..6393bb3 100644 --- a/src/components/event/ProfileListItem.tsx +++ b/src/components/event/ProfileListItem.tsx @@ -2,6 +2,7 @@ import { Component, Show } from 'solid-js'; import useProfile from '@/nostr/useProfile'; import npubEncodeFallback from '@/utils/npubEncodeFallback'; +import { thumbnailUrl } from '@/utils/url'; export type ProfileListItemProps = { pubkey: string; @@ -24,7 +25,9 @@ const ProfileListItem: Component = (props) => { }} > - {(url) => icon} + {(url) => ( + icon + )}
diff --git a/src/components/event/Reaction.tsx b/src/components/event/Reaction.tsx index 74bc3a5..311ea24 100644 --- a/src/components/event/Reaction.tsx +++ b/src/components/event/Reaction.tsx @@ -13,6 +13,7 @@ import { reaction } from '@/nostr/event'; import useEvent from '@/nostr/useEvent'; import useProfile from '@/nostr/useProfile'; import ensureNonNull from '@/utils/ensureNonNull'; +import { thumbnailUrl } from '@/utils/url'; type ReactionDisplayProps = { event: NostrEvent; @@ -47,13 +48,15 @@ const ReactionDisplay: Component = (props) => {
- - icon + + {(url) => ( + icon + )}