aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/app/dashboard/(tabs)/lists.tsx
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-04-19 15:28:48 +0100
committerMohamedBassem <me@mbassem.com>2024-04-19 15:28:48 +0100
commit0c9a07e5b28e633d4eb7d9a888ee416ec16177ff (patch)
treeec6053d8e30187715c14ac794bc84d5f83183c33 /apps/mobile/app/dashboard/(tabs)/lists.tsx
parent4f9b6c89dedbe48ced4ea3448a71a75714045453 (diff)
downloadkarakeep-0c9a07e5b28e633d4eb7d9a888ee416ec16177ff.tar.zst
fix(mobile): Fix the color of the collapsible triangle to respect dark mode
Diffstat (limited to 'apps/mobile/app/dashboard/(tabs)/lists.tsx')
-rw-r--r--apps/mobile/app/dashboard/(tabs)/lists.tsx24
1 files changed, 15 insertions, 9 deletions
diff --git a/apps/mobile/app/dashboard/(tabs)/lists.tsx b/apps/mobile/app/dashboard/(tabs)/lists.tsx
index ed085f3d..7099c09f 100644
--- a/apps/mobile/app/dashboard/(tabs)/lists.tsx
+++ b/apps/mobile/app/dashboard/(tabs)/lists.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";
import { FlatList, Pressable, Text, View } from "react-native";
import { Link } from "expo-router";
+import { TailwindResolver } from "@/components/TailwindResolver";
import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView";
import PageTitle from "@/components/ui/PageTitle";
import { api } from "@/lib/trpc";
@@ -113,15 +114,20 @@ export default function Lists() {
}));
}}
>
- <Triangle
- fill="black"
- color="black"
- size={10}
- style={{
- transform: [
- { rotate: l.item.collapsed ? "90deg" : "180deg" },
- ],
- }}
+ <TailwindResolver
+ className="text-foreground"
+ comp={(style) => (
+ <Triangle
+ size={10}
+ color={style?.color?.toString()}
+ fill={style?.color?.toString()}
+ style={{
+ transform: [
+ { rotate: l.item.collapsed ? "90deg" : "180deg" },
+ ],
+ }}
+ />
+ )}
/>
</Pressable>
)}