From b82b9250532157ef2fe1756fa3ffc8f35d1f0102 Mon Sep 17 00:00:00 2001 From: Shusui MOYATANI Date: Sun, 7 Jan 2024 16:47:01 +0900 Subject: [PATCH] feat: use thumbnail of profile pic in post --- src/components/Post.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Post.tsx b/src/components/Post.tsx index 25bf253..b271fe6 100644 --- a/src/components/Post.tsx +++ b/src/components/Post.tsx @@ -6,6 +6,7 @@ import useFormatDate from '@/hooks/useFormatDate'; import { useTranslation } from '@/i18n/useTranslation'; import useProfile from '@/nostr/useProfile'; import npubEncodeFallback from '@/utils/npubEncodeFallback'; +import { thumbnailUrl } from '@/utils/url'; export type PostProps = { authorPubkey: string; @@ -44,7 +45,9 @@ const Post: Component = (props) => { {(url) => ( - {() => icon} + {() => ( + icon + )} )}