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
commit 917205299a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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