Skip to content

Commit

Permalink
#3
Browse files Browse the repository at this point in the history
- код упрощен по комментариям
  • Loading branch information
krutoo committed Jul 23, 2021
1 parent 3b79e77 commit 58471bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2752,9 +2752,6 @@ exports[`GalleryModal should renders with review footer 2`] = `
autoPlay={true}
controls={true}
controlsList="nodownload"
onEnded={[Function]}
onPause={[Function]}
onPlay={[Function]}
>
<source
src="https://cdn2.static1-sima-land.com/flv/3404953.mp4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ const Media = ({ onVideoEvent, ...media }: MediaData & {
autoPlay
controls
controlsList='nodownload'
onPlay={e => onVideoEvent?.(e)}
onPause={e => onVideoEvent?.(e)}
onEnded={e => onVideoEvent?.(e)}
onPlay={onVideoEvent}
onPause={onVideoEvent}
onEnded={onVideoEvent}
>
<source src={media.data.src} />
</video>
Expand Down

0 comments on commit 58471bc

Please sign in to comment.