fix: video preview comp memo import

This commit is contained in:
lohxt1 2024-11-20 19:20:43 +05:30
parent 56c3bf0899
commit 916f28633e

View File

@ -11,7 +11,7 @@ import { GlobalWorkerOptions } from 'pdfjs-dist/build/pdf';
GlobalWorkerOptions.workerSrc = 'pdfjs-dist/legacy/build/pdf.worker.min.mjs';
import ReactPlayer from 'react-player';
const VideoPreview = memo(({ contentType, dataBuffer }) => {
const VideoPreview = React.memo(({ contentType, dataBuffer }) => {
const [videoUrl, setVideoUrl] = useState(null);
useEffect(() => {