Resolve "Implement and Split edit Category from add Category"

This commit is contained in:
Thomas Schleicher 2024-01-05 16:45:25 +00:00 committed by jastornig
parent bf939fb807
commit d3b7c61c67
8 changed files with 146 additions and 21 deletions

View file

@ -16,12 +16,12 @@ const CategoryItem = (properties: CategoryItemProps) => {
const { colors } = useTheme();
const subText = `${properties.total_expenses} / ${properties.allocated_amount}`;
const subText = `${properties.total_expenses.toFixed(2)} / ${properties.allocated_amount}`;
return (
<TouchableOpacity onPress={properties.onPress}>
<CustomCard style={styles.customCardStyle}>
<View style={[styles.colorTipStyle, {backgroundColor: "blue"}]}/>
<View style={[styles.colorTipStyle, {backgroundColor: properties.color}]}/>
<View style={[styles.textViewStyle]}>
<Text style={[styles.categoryNameStyle, {color: colors.primaryText}]}>
{properties.category}