Skip to content

Commit

Permalink
feat: Update slop-video component to use lazy loading for ReactHlsPlayer
Browse files Browse the repository at this point in the history
  • Loading branch information
Najeong-Kim committed Aug 15, 2024
1 parent b490f1d commit f6df999
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/features/slop/ui/slop-video.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import dynamic from 'next/dynamic';
import React, { useEffect } from 'react';
import ReactHlsPlayer from 'react-hls-player';
import { cn } from '@/shared/lib';
import CloseButton from '@/shared/ui/close-button';

const ReactHlsPlayer = dynamic(() => import('react-hls-player'), { ssr: false });

interface SlopVideoProps {
src: string;
closeVideo: () => void;
Expand Down

0 comments on commit f6df999

Please sign in to comment.