last changes
This commit is contained in:
parent
7a5ace403e
commit
899b50ded4
16 changed files with 53 additions and 89 deletions
|
|
@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
|
|||
import { Text, StyleSheet } from 'react-native';
|
||||
import { useTheme } from '../../app/contexts/ThemeContext';
|
||||
import useFetch from '../../hooks/useFetch';
|
||||
import { CategoryType } from '../../services/database';
|
||||
import { CategoryType } from '../../types/dbItems';
|
||||
import {useCategoryData} from '../../hooks/useCategoryData';
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
|
|
@ -47,7 +47,7 @@ const BudgetTotal: React.FC<BudgetTotalProps> = ({ goodColor = 'green', badColor
|
|||
return (
|
||||
<Text style={[styles.text, { color: colors.primaryText }]}>
|
||||
<>
|
||||
You have spent <Text style={[styles.boldText, { color: goodColor }]}>{expenseTotal.toFixed(2)}€</Text> out of your Budget of <Text style={[styles.boldText]}>{total.toFixed(2)}€ </Text>.
|
||||
You have spent <Text style={[styles.boldText, { color: goodColor }]}>{expenseTotal.toFixed(2)}€</Text> out of your Budget of <Text style={[styles.boldText]}>{total.toFixed(2)}€ </Text>
|
||||
</>
|
||||
</Text>
|
||||
);
|
||||
|
|
|
|||
Reference in a new issue