Fix: remove 'slice' prop from Timer

This commit is contained in:
0x1eef 2023-01-05 19:27:04 -03:00 committed by Robert
parent 5376b632dd
commit bc0078f5d4

View file

@ -9,7 +9,7 @@ interface Props {
setStream: (stream: Ayat) => void setStream: (stream: Ayat) => void
} }
export function Timer ({ surah, stream, setStream, locale, slice }: Props) { export function Timer ({ surah, stream, setStream, locale }: Props) {
const ayah = stream[stream.length - 1]; const ayah = stream[stream.length - 1];
const [ms, setMs] = useState(ayah.readTimeMs); const [ms, setMs] = useState(ayah.readTimeMs);
useEffect(() => setMs(ayah.readTimeMs), [ayah.id]); useEffect(() => setMs(ayah.readTimeMs), [ayah.id]);