From dac471f0a66f8eea61892f70105d1ae15d3a8840 Mon Sep 17 00:00:00 2001 From: sarendsen Date: Fri, 24 Jan 2025 08:55:02 +0100 Subject: [PATCH] feat: hide sections when empty by default --- app/(auth)/(tabs)/(home)/index.tsx | 8 +++-- components/home/ScrollingCollectionList.tsx | 3 +- utils/atoms/settings.ts | 33 +++++++++++++-------- 3 files changed, 28 insertions(+), 16 deletions(-) diff --git a/app/(auth)/(tabs)/(home)/index.tsx b/app/(auth)/(tabs)/(home)/index.tsx index fdbe0ea2..6864c4d2 100644 --- a/app/(auth)/(tabs)/(home)/index.tsx +++ b/app/(auth)/(tabs)/(home)/index.tsx @@ -207,7 +207,7 @@ export default function index() { const latestMediaViews = collections.map((c) => { const includeItemTypes: BaseItemKind[] = c.CollectionType === "tvshows" ? ["Series"] : ["Movie"]; - const title = t("home.recently_added_in", {libraryName: c.Name}); + const title = t("home.recently_added_in", { libraryName: c.Name }); const queryKey = [ "home", "recentlyAddedIn" + c.CollectionType, @@ -352,7 +352,7 @@ export default function index() { {t("home.no_internet")} - {t("home.no_internet_message")} + {t("home.no_internet_message")}