From 0a5a1dcd39c53f386d8e2d483cec15a51ac8238c Mon Sep 17 00:00:00 2001
From: 0x1eef <0x1eef@protonmail.com>
Date: Fri, 18 Oct 2024 19:53:41 -0300
Subject: [PATCH] Rename route var
---
src/js/components/RandomSurah/index.tsx | 6 +++---
src/js/index.tsx | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/js/components/RandomSurah/index.tsx b/src/js/components/RandomSurah/index.tsx
index 1f9f81e..e95b7bc 100644
--- a/src/js/components/RandomSurah/index.tsx
+++ b/src/js/components/RandomSurah/index.tsx
@@ -1,10 +1,10 @@
type Props = {
- locale: string;
+ localeId: string;
};
-export function RandomSurah({ locale }: Props) {
+export function RandomSurah({ localeId }: Props) {
const randomId = Math.floor(Math.random() * Quran.surahs.length);
- const href = `/${locale}/${randomId + 1}`;
+ const href = `/${localeId}/${randomId + 1}`;
const ref = useRef();
useEffect(() => {
diff --git a/src/js/index.tsx b/src/js/index.tsx
index 07230d3..e2b4298 100644
--- a/src/js/index.tsx
+++ b/src/js/index.tsx
@@ -52,7 +52,7 @@ const Main = (function () {
t={t}
/>
-
+
);
};