chore: add color for category
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user