diff --git a/src/features/StreamPlayer/components/Controls/index.tsx b/src/features/StreamPlayer/components/Controls/index.tsx index d5d996f0..5b7c97c6 100644 --- a/src/features/StreamPlayer/components/Controls/index.tsx +++ b/src/features/StreamPlayer/components/Controls/index.tsx @@ -1,4 +1,3 @@ -/* eslint-disable react/no-unused-prop-types */ import { Fragment, useMemo } from 'react' import { DebouncedFunc } from 'lodash' @@ -58,7 +57,7 @@ export type ControlsPropsExtended = ControlsProps & { progressBarElement: JSX.Element, } -export const Controls = (props: ControlsProps) => { +export const Controls = ({ ...props }: ControlsProps) => { const { activeChapterIndex = 0, allPlayedProgress = 0, @@ -73,7 +72,7 @@ export const Controls = (props: ControlsProps) => { onTouchEnd, onTouchStart, playedProgress, - } = { ...props } + } = props const playBackTime = useMemo(() => { if (isLive || isStorage) {