From ba9e4a5add2375ba3ba9349f5d5bba0f9fe2ea56 Mon Sep 17 00:00:00 2001 From: billisdead Date: Sat, 16 May 2026 12:34:09 +0200 Subject: [PATCH] fix: resolve TypeScript errors caught by typecheck MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - _layout: replace invalid SFSymbols7_0 name "calendar.fill" with "calendar.circle.fill" (the fill variant of calendar in SF Symbols) - useColors: remove unsafe cast through Record — colors.radius (number) is incompatible with the palette shape; simplify to a direct ternary since both light and dark palettes are always defined Co-Authored-By: Claude Sonnet 4.6 --- artifacts/postiz-mobile/app/(tabs)/_layout.tsx | 2 +- artifacts/postiz-mobile/hooks/useColors.ts | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/artifacts/postiz-mobile/app/(tabs)/_layout.tsx b/artifacts/postiz-mobile/app/(tabs)/_layout.tsx index 210d943..625dcdd 100644 --- a/artifacts/postiz-mobile/app/(tabs)/_layout.tsx +++ b/artifacts/postiz-mobile/app/(tabs)/_layout.tsx @@ -13,7 +13,7 @@ function NativeTabLayout() { return ( - + diff --git a/artifacts/postiz-mobile/hooks/useColors.ts b/artifacts/postiz-mobile/hooks/useColors.ts index f6850b8..62e73dd 100644 --- a/artifacts/postiz-mobile/hooks/useColors.ts +++ b/artifacts/postiz-mobile/hooks/useColors.ts @@ -16,9 +16,6 @@ import colors from "@/constants/colors"; */ export function useColors() { const scheme = useColorScheme(); - const palette = - scheme === "dark" && "dark" in colors - ? (colors as Record).dark - : colors.light; + const palette = scheme === "dark" ? colors.dark : colors.light; return { ...palette, radius: colors.radius }; }