A few changes:
Auto fill amount category edit Empty list component calendar filtering in category screen, expenses can be added directly
This commit is contained in:
parent
e0f3cf947c
commit
8149ec234f
10 changed files with 97 additions and 42 deletions
|
|
@ -4,7 +4,7 @@ import TextInputBar from "../common/TextInputBar";
|
|||
|
||||
type BudgetHeaderProperties = {
|
||||
selectedPage: string,
|
||||
handlePageSelection: (page: string) => void,
|
||||
handlePageSelection: (page: "expense" | "saving") => void,
|
||||
}
|
||||
|
||||
type PageSelectorButtonProperties = {
|
||||
|
|
@ -21,16 +21,16 @@ const BudgetHeader = (properties: BudgetHeaderProperties) => {
|
|||
<View style={styles.containerStyle}>
|
||||
<PageSelectorButton
|
||||
label="Expenses"
|
||||
isSelected={properties.selectedPage === "expenses"}
|
||||
isSelected={properties.selectedPage === "expense"}
|
||||
onPress={() => {
|
||||
properties.handlePageSelection("expenses")
|
||||
properties.handlePageSelection("expense")
|
||||
}}
|
||||
/>
|
||||
<PageSelectorButton
|
||||
label="Savings"
|
||||
isSelected={properties.selectedPage === "savings"}
|
||||
isSelected={properties.selectedPage === "saving"}
|
||||
onPress={() => {
|
||||
properties.handlePageSelection("savings");
|
||||
properties.handlePageSelection("saving");
|
||||
}}
|
||||
/>
|
||||
</View>
|
||||
|
|
|
|||
Reference in a new issue