'npm run prettier'

This commit is contained in:
0x1eef 2024-04-30 01:06:16 -03:00
parent 8e7fc9d6d5
commit 87a61cfe96
2 changed files with 7 additions and 9 deletions

View file

@ -78,12 +78,7 @@ export function SurahIndex({ locale, surahs, t }: Props) {
{t(locale, "ChooseRandomChapter")}
</span>
</a>
<Filter
t={t}
locale={locale}
surahs={surahs}
setIndex={setIndex}
/>
<Filter t={t} locale={locale} surahs={surahs} setIndex={setIndex} />
</footer>
</div>
);

View file

@ -19,9 +19,12 @@ import * as Quran from "~/lib/Quran";
item.font("Mada Regular", "url(/fonts/mada-regular.ttf"),
item.json(`/json/${locale}/${surahId}/surah.json`, { className: "surah" }),
...recitations.map((recitation: Quran.Recitation) => {
const path = ["/json", "/durations", `${recitation.id}`, `${surahId}.json`].join(
"/",
);
const path = [
"/json",
"/durations",
`${recitation.id}`,
`${surahId}.json`,
].join("/");
return item.json(path, {
className: `recitation time-slots ${recitation.id}`,
});