fixed video and image thumbs for bookmarks list

This commit is contained in:
Victor committed 2024-09-18 21:55:56 -07:00
1 parent bfa9079cd8
commit 5df3271dc3
2 files changed
+6 -2

No files matched your search

@@ -42,7 +42,9 @@ export default function ImageCard({
// const { setToken, setWeightTitle } = useToken();
const linkUrl = getCardUrl(data, source, type);
const { imageThumb } = MediaLinks(data.media_links);
const { imageThumb } = MediaLinks(
data.media_links || data.details?.maybe_media_file_data?.media_links
);
const handleSelectModalResultSelect = () => {
console.log("handleSelectModalResultSelect");
@@ -35,7 +35,9 @@ export default function VideoCard({
onResultSelect,
}: VideoCardProps) {
const linkUrl = getCardUrl(data, source, type);
const { videoAnimated, videoStill } = MediaLinks(data.media_links);
const { videoAnimated, videoStill } = MediaLinks(
data.media_links || data.details.maybe_media_file_data.media_links
);
const [hover, hoverProps] = useHover({});
const handleSelectModalResultSelect = () => {