Skip to content

Commit

Permalink
Use Image instead of img tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Kündig committed Dec 3, 2024
1 parent 6b54fa8 commit 4898fcd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { PauseIcon, PlayIcon, SpeakerWaveIcon, SpeakerXMarkIcon } from '@heroico
import MuxVideo from '@mux/mux-video-react';
import { Button } from '@socialincome/ui';
import classNames from 'classnames';
import Image from 'next/image';
import { useEffect, useRef, useState } from 'react';
import { useEventListener, useIntersectionObserver } from 'usehooks-ts';

Expand Down Expand Up @@ -98,10 +99,10 @@ const MuxVideoComponent = ({ lang, translations }: HeroVideoSubtitles) => {
return (
<>
<div ref={posterRef} className="absolute inset-0 z-0">
<img
<Image
alt="Video Poster"
className="h-full w-full object-cover"
src="https://image.mux.com/IPdwilTUVkKs2nK8zKZi5eKwbKhpCWxgsYNVxcANeFE/thumbnail.jpg?time=2"
alt="Video Poster"
/>
</div>
<MuxVideo
Expand Down

0 comments on commit 4898fcd

Please sign in to comment.