Merge pull request #3517 from lohxt1/fix/video-preview-comp--memo-import

fix: video preview comp memo import
This commit is contained in:
lohit
2024-11-20 19:21:41 +05:30
committed by GitHub

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(() => {