From f80e6eb56477316d451e03bbbbcfb62f9e673f34 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Thu, 17 Oct 2024 23:22:24 -0300 Subject: [PATCH] Run 'rake format:eslint:apply' --- README.md | 5 ++--- src/js/components/SurahStream/index.tsx | 2 +- src/js/index.tsx | 29 +++++++++++++++++++++---- 3 files changed, 28 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 22ad161..8c1a836 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,11 @@ The project is still in the early stages of development. ## Requirements -The following languages and tools have to be -installed to build the website from source: +The following languages have to be installed to build +the website from source: * Ruby 3.2 (or later) * NodeJS v18.15 (or later) -* [tidy-html5](https://github.com/htacg/tidy-html5) ## Development diff --git a/src/js/components/SurahStream/index.tsx b/src/js/components/SurahStream/index.tsx index 216ab17..39f5dcc 100644 --- a/src/js/components/SurahStream/index.tsx +++ b/src/js/components/SurahStream/index.tsx @@ -34,7 +34,7 @@ export function SurahStream({ surahId, localeId, t }: Props) { const [theme, setTheme] = useTheme(); const locale = Quran.locales[localeId]; - const surah = Quran.surahs[localeId][parseInt(surahId) - 1] + const surah = Quran.surahs[localeId][parseInt(surahId) - 1]; const rootRef = useRef(null); const audio = useMemo(() => new Audio(), []); const readyToRender = stream.length > 0; diff --git a/src/js/index.tsx b/src/js/index.tsx index 427357c..0ff5cf5 100644 --- a/src/js/index.tsx +++ b/src/js/index.tsx @@ -27,10 +27,31 @@ document.addEventListener("DOMContentLoaded", () => { return () => { return ( - - - - + + + + + ); };