diff --git a/components/settings/HomeIndex.tsx b/components/settings/HomeIndex.tsx index 2d768656..8ac42dd4 100644 --- a/components/settings/HomeIndex.tsx +++ b/components/settings/HomeIndex.tsx @@ -115,12 +115,12 @@ export const HomeIndex = () => { onPress={() => { router.push("/(auth)/downloads"); }} - className='p-2' + className='ml-1.5' > ), @@ -329,7 +329,7 @@ export const HomeIndex = () => { const customSections = useMemo(() => { if (!api || !user?.Id || !settings?.home?.sections) return []; const ss: Section[] = []; - for (const [index, section] of settings.home.sections.entries()) { + settings.home.sections.forEach((section, index) => { const id = section.title || `section-${index}`; ss.push({ title: t(`${id}`), @@ -384,7 +384,7 @@ export const HomeIndex = () => { type: "ScrollingCollectionList", orientation: section?.orientation || "vertical", }); - } + }); return ss; }, [api, user?.Id, settings?.home?.sections]);