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>
<img {(url) => (
src={thumbnailUrl(senderProfile()?.picture, 'icon')} <img
alt="icon" src={thumbnailUrl(url, 'icon')}
// TODO autofit alt="icon"
class="h-full w-full object-cover" // TODO autofit
/> 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">