From 68d3f13eff17f66a48b186f8759e79d61a7e4a49 Mon Sep 17 00:00:00 2001 From: sina_sajjadi Date: Thu, 2 Jan 2025 15:21:50 +0330 Subject: [PATCH] fix : request for next dua parts sends after scroling to buttom fix : audio plays even if it is not synced --- src/components/context/audio-conext.tsx | 9 +- src/components/language-switcher.tsx | 1 - src/components/layout/sidebar.tsx | 1 - src/components/modals/modal-manager.tsx | 1 - src/components/modals/modal.tsx | 1 - src/components/sidebar/tabs.tsx | 1 - src/components/ui/search-duas.tsx | 1 - src/components/utils/colorize-vowels.tsx | 5 +- src/pages/_app.tsx | 4 +- src/pages/duas/[slug].tsx | 123 +++++++++++++---------- tailwind.config.ts | 7 +- 11 files changed, 79 insertions(+), 75 deletions(-) diff --git a/src/components/context/audio-conext.tsx b/src/components/context/audio-conext.tsx index 850e491..9c1523e 100644 --- a/src/components/context/audio-conext.tsx +++ b/src/components/context/audio-conext.tsx @@ -48,7 +48,7 @@ export const AudioProvider: React.FC<{ children: ReactNode }> = ({ children, }) => { const audioRef = useRef(null); - const partRefs = useRef<(HTMLDivElement | null)[]>([]); + let partRefs = useRef<(HTMLDivElement | null)[]>([]); const [audios, setAudios] = useState