changed the categoryItem component

This commit is contained in:
Thomas Schleicher 2023-12-24 16:40:07 +01:00 committed by Jakob Stornig
parent 6cf8fc29a2
commit 8931386239
3 changed files with 32 additions and 22 deletions

View file

@ -37,7 +37,7 @@ export default function Page() {
}}>Init Database</Text>
<Text style={styles.text} onPress={() => {
addCategory("Expense Category", "green", "expense").then(() => {
addCategory("Category", "green", "expense").then(() => {
const getCategoryQuery: Query = {sql: "SELECT guid FROM category", args: []};
executeQuery(getCategoryQuery).then((result) => {
if("rows" in result[0]) {
@ -49,7 +49,7 @@ export default function Page() {
}}>Add new Category Expense</Text>
<Text style={styles.text} onPress={() => {
addCategory("Savings Category", "yellow", "saving").then(() => {
addCategory("Category", "yellow", "saving").then(() => {
const getCategoryQuery: Query = {sql: "SELECT guid FROM category", args: []};
executeQuery(getCategoryQuery).then((result) => {
if("rows" in result[0]) {