diff --git a/src/components/home/MediaScreen.tsx b/src/components/home/MediaScreen.tsx index 388021a2..21d8b7ee 100644 --- a/src/components/home/MediaScreen.tsx +++ b/src/components/home/MediaScreen.tsx @@ -1,4 +1,5 @@ import { Box, Icon } from "@chakra-ui/react"; +import Image from "next/image"; import React, { useEffect, useRef, useState } from "react"; import { BiX } from "react-icons/bi"; import HomeMediaPortal from "./HomeMediaPortal"; @@ -7,7 +8,7 @@ const MediaScreen = ({ mediaElement, wrapperId = "home-media-viewer", }: { - mediaElement: React.ReactNode; + mediaElement: React.JSX.Element; wrapperId?: string; }) => { const [isFullScreen, setIsFullScreen] = useState(false); @@ -89,9 +90,14 @@ const MediaScreen = ({ onClick={disableFullScreen} w="100%" h="100%" - > + /> - {mediaElement} + {React.cloneElement>( + mediaElement, + { + width: 1000, + } + )}