|
@@ -13,9 +13,9 @@ export default function DepenseListEntry(props){
|
13
|
13
|
toggleEdit(!editing);
|
14
|
14
|
}}
|
15
|
15
|
style={depense_list_entry_style.pressable_depense_list_entry}>
|
16
|
|
- <Text >{props.depense.description}</Text>
|
17
|
|
- <Text >{new Date(props.depense.date).toDateString()}</Text>
|
18
|
|
- <Text >{props.depense.value}</Text>
|
|
16
|
+ <Text style={depense_list_entry_style.depense_info}>{props.depense.description}</Text>
|
|
17
|
+ {/* <Text >{new Date(props.depense.date).toDateString()}</Text> */}
|
|
18
|
+ <Text style={depense_list_entry_style.depense_info}>{props.depense.value}</Text>
|
19
|
19
|
</Pressable>
|
20
|
20
|
{editing ?
|
21
|
21
|
<DepenseForm fetchDepenses={props.fetchDepenses} onUpdateDepense={(res) => {toggleEdit(res)}} depense={props.depense}/> :
|
|
@@ -33,8 +33,12 @@ const depense_list_entry_style = StyleSheet.create({
|
33
|
33
|
pressable_depense_list_entry: {
|
34
|
34
|
display: "flex",
|
35
|
35
|
flexDirection: "row",
|
36
|
|
- justifyContent: "space-between",
|
|
36
|
+ justifyContent: "space-evenly",
|
37
|
37
|
margin: 2,
|
38
|
|
-
|
|
38
|
+ },
|
|
39
|
+ depense_info: {
|
|
40
|
+ paddingLeft: 50,
|
|
41
|
+ paddingRight: 50,
|
|
42
|
+ width: 200,
|
39
|
43
|
}
|
40
|
44
|
});
|