fixed euro sign on expense item (dont judge me I know this isnt the correct branch) and fixed the async storage so it acctually loads on the info

This commit is contained in:
thschleicher 2024-01-25 15:38:50 +01:00
parent 7a77b9ca79
commit 4ddc76faa4
2 changed files with 8 additions and 6 deletions

View file

@ -1,9 +1,9 @@
import React from 'react';
import { ColorValue, StyleSheet, Text, View } from 'react-native';
import { TouchableOpacity } from 'react-native-gesture-handler';
import { useTheme } from '../../app/contexts/ThemeContext';
import { SIZES } from '../../constants/theme';
import CustomCard from "../common/CustomCard";
import { useTheme } from '../../app/contexts/ThemeContext';
import { TouchableOpacity } from 'react-native-gesture-handler';
//export type ExpenseItemProps = {color: ColorValue, category: string, title: string, date: string, value : string}
interface ExpenseItemProps {
@ -44,9 +44,10 @@ export default function ExpenseItem(itemProps : ExpenseItemProps) {
</View>
<View style={[styles.valueSection, {backgroundColor: colors.backgroundColor}]}>
<Text style={{
paddingRight: 10,
fontSize: SIZES.xxLarge,
color: colors.primaryText
}} numberOfLines={1}>{itemProps.value}</Text>
}} numberOfLines={1}>{itemProps.value + " €"}</Text>
</View>
</View>
</TouchableOpacity>