changed the categoryItem component
This commit is contained in:
parent
6cf8fc29a2
commit
8931386239
3 changed files with 32 additions and 22 deletions
|
|
@ -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]) {
|
||||
|
|
|
|||
Reference in a new issue