navigation finished and debug menu in stats expanded
This commit is contained in:
parent
9706fc0a51
commit
6cf8fc29a2
3 changed files with 41 additions and 25 deletions
|
|
@ -37,7 +37,7 @@ export default function Page() {
|
|||
}}>Init Database</Text>
|
||||
|
||||
<Text style={styles.text} onPress={() => {
|
||||
addCategory("Test", "blue", "budget").then(() => {
|
||||
addCategory("Expense Category", "green", "expense").then(() => {
|
||||
const getCategoryQuery: Query = {sql: "SELECT guid FROM category", args: []};
|
||||
executeQuery(getCategoryQuery).then((result) => {
|
||||
if("rows" in result[0]) {
|
||||
|
|
@ -46,6 +46,18 @@ export default function Page() {
|
|||
})
|
||||
console.log("Category added with success!");
|
||||
})
|
||||
}}>Add Category</Text>
|
||||
}}>Add new Category Expense</Text>
|
||||
|
||||
<Text style={styles.text} onPress={() => {
|
||||
addCategory("Savings Category", "yellow", "saving").then(() => {
|
||||
const getCategoryQuery: Query = {sql: "SELECT guid FROM category", args: []};
|
||||
executeQuery(getCategoryQuery).then((result) => {
|
||||
if("rows" in result[0]) {
|
||||
console.log(result[0]["rows"]);
|
||||
}
|
||||
})
|
||||
console.log("Category added with success!");
|
||||
})
|
||||
}}>Add new Category Savings</Text>
|
||||
</View>);
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue