Hey is a decentralized and permissionless social media app built with Lens Protocol 🌿

fix: type video source (#6023)

authored by yoginth.com and committed by

GitHub 78a06f3b 77cdbe4a

+4 -1
+4 -1
apps/web/src/components/Shared/Post/Attachments.tsx
··· 1 1 import { TRANSFORMS } from "@hey/data/constants"; 2 2 import imageKit from "@hey/helpers/imageKit"; 3 3 import type { MetadataAsset } from "@hey/types/misc"; 4 + import type { VideoSrc } from "@livepeer/react"; 4 5 import { getSrc } from "@livepeer/react/external"; 5 6 import { memo, useState } from "react"; 6 7 import Audio from "@/components/Shared/Audio"; ··· 104 105 <Video 105 106 poster={asset?.cover as string} 106 107 src={ 107 - getSrc(asset?.uri) || [{ src: asset?.uri, type: "video" } as any] 108 + getSrc(asset?.uri) || [ 109 + { src: asset?.uri as string, type: "video" } as VideoSrc 110 + ] 108 111 } 109 112 /> 110 113 )}