Fix: remove 'slice' prop from Timer
This commit is contained in:
parent
5376b632dd
commit
bc0078f5d4
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ interface Props {
|
|||
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 [ms, setMs] = useState(ayah.readTimeMs);
|
||||
useEffect(() => setMs(ayah.readTimeMs), [ayah.id]);
|
||||
|
|
Loading…
Reference in a new issue