Resolve "Implement and Split edit Category from add Category"
This commit is contained in:
parent
bf939fb807
commit
d3b7c61c67
8 changed files with 146 additions and 21 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Reference in a new issue