From d6d6b10be3a83b293232f336d387a0ae3ce9c091 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sat, 21 Sep 2024 17:01:05 -0300 Subject: [PATCH] Apply classes regardless of locale direction --- src/js/components/SurahStream/Stream.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/js/components/SurahStream/Stream.tsx b/src/js/components/SurahStream/Stream.tsx index 288fd10..d0d6e6a 100644 --- a/src/js/components/SurahStream/Stream.tsx +++ b/src/js/components/SurahStream/Stream.tsx @@ -22,7 +22,6 @@ export function Stream({ }: Props) { const className = endOfStream || isPaused ? ["scroll-y"] : []; const isArabic = locale.name === "ar"; - const isRTL = locale.direction === "rtl"; const ref = useRef(null); const ul = useMemo(() => { return ( @@ -55,11 +54,7 @@ export function Stream({ } }} /> - + {t(locale, "surah")} {formatNumber(locale, surah.id)} {t(locale, "comma")} {t(locale, "ayah")}{" "} {formatNumber(locale, ayah.id)} {t(locale, "of")}{" "}