Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OV-307: Show Preview Url Of Each Video as Thumbnails #336

Closed
wants to merge 7 commits into from
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ type Properties = {
id: string;
name: string;
url: string | null;
previewUrl: string | null;
};

const VideoCard: React.FC<Properties> = ({ id, name, url }) => {
const VideoCard: React.FC<Properties> = ({ id, name, url, previewUrl }) => {
const dispatch = useAppDispatch();

const [isVideoModalOpen, setIsVideoModalOpen] = useState(false);
Expand Down Expand Up @@ -63,7 +64,11 @@ const VideoCard: React.FC<Properties> = ({ id, name, url }) => {
return (
<Box borderRadius="8px" bg="white" padding="7px">
<Box position="relative" role="group">
<Image src={photo} alt="Video preview" borderRadius="5px" />
<Image
src={previewUrl || photo}
alt="Video preview"
borderRadius="5px"
/>

<Box
_groupHover={{ opacity: 1 }}
Expand Down
Loading