fix: types

This commit is contained in:
Shusui MOYATANI
2024-01-15 21:30:04 +09:00
parent 665393f867
commit a5a78c2741

View File

@@ -81,13 +81,15 @@ const ZapReceiptDisplay: Component<ZapReceiptProps> = (props) => {
</div> </div>
<div class="notification-user flex gap-1 overflow-hidden"> <div class="notification-user flex gap-1 overflow-hidden">
<div class="author-icon h-5 w-5 shrink-0 overflow-hidden rounded"> <div class="author-icon h-5 w-5 shrink-0 overflow-hidden rounded">
<Show when={senderProfile()?.picture != null}> <Show when={senderProfile()?.picture} keyed>
{(url) => (
<img <img
src={thumbnailUrl(senderProfile()?.picture, 'icon')} src={thumbnailUrl(url, 'icon')}
alt="icon" alt="icon"
// TODO autofit // TODO autofit
class="h-full w-full object-cover" class="h-full w-full object-cover"
/> />
)}
</Show> </Show>
</div> </div>
<div class="flex min-w-0 flex-1 overflow-hidden"> <div class="flex min-w-0 flex-1 overflow-hidden">