Skip to content

Commit

Permalink
pretty strings & no more catstring #30
Browse files Browse the repository at this point in the history
  • Loading branch information
HaDuve committed Sep 20, 2022
1 parent e764067 commit 1b16f09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TravelCostApp/components/ExpensesOutput/ExpenseItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function ExpenseItem({
</View>
<View style={styles.leftItem}>
<Text style={[styles.textBase, styles.description]}>
{description} -- {whoPaid}
{description}
</Text>
<Text style={[styles.textBase, styles.secondaryText]}>
{toShortFormat(date)}
Expand Down
6 changes: 3 additions & 3 deletions TravelCostApp/components/ManageExpense/ExpenseForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const ExpenseForm = ({
isValid: true,
},
category: {
value: defaultValues ? defaultValues.category : "",
value: defaultValues ? defaultValues.category : pickedCat,
isValid: true,
},
country: {
Expand Down Expand Up @@ -400,14 +400,14 @@ const ExpenseForm = ({
}}
invalid={!inputs.date.isValid}
/>
<Input
{/* <Input
label="Category"
textInputConfig={{
onChangeText: inputChangedHandler.bind(this, "category"),
value: inputs.category.value,
}}
invalid={!inputs.category.isValid}
/>
/> */}

<View style={styles.inputsRowSecond}>
<Input
Expand Down

0 comments on commit 1b16f09

Please sign in to comment.