chore: add color for category

This commit is contained in:
2026-03-07 15:48:27 +01:00
parent 8edc14ca55
commit 125d066dcb
5 changed files with 133 additions and 13 deletions
+3 -1
View File
@@ -8,15 +8,17 @@ interface CategoryPillProps {
label: string;
active: boolean;
onPress: () => void;
color?: string;
}
export default function CategoryPill({
label,
active,
onPress,
color,
}: CategoryPillProps) {
const { colors } = useTheme();
const catColor = getCategoryColor(label, colors);
const catColor = color || getCategoryColor(label, colors);
return (
<TouchableOpacity
onPress={onPress}