diff --git a/app/(tabs)/stats/index.tsx b/app/(tabs)/stats/index.tsx
index 5deefad..7db4051 100644
--- a/app/(tabs)/stats/index.tsx
+++ b/app/(tabs)/stats/index.tsx
@@ -37,7 +37,7 @@ export default function Page() {
}}>Init Database
{
- 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
{
- 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]) {
diff --git a/components/budget/categoryItem.tsx b/components/budget/categoryItem.tsx
index fe4d383..af32907 100644
--- a/components/budget/categoryItem.tsx
+++ b/components/budget/categoryItem.tsx
@@ -15,14 +15,19 @@ const CategoryItem = (properties: CategoryItemProps) => {
return (
-
-
- {properties.category}
+
+
+
+ {properties.category}
+
-
-
+
+
+ 10/100$
+ {/* {properties.allocated_account} */}
+
);
@@ -31,23 +36,28 @@ const CategoryItem = (properties: CategoryItemProps) => {
export default CategoryItem;
const styles = StyleSheet.create({
- colorTip: {
- width: 20,
- borderTopLeftRadius: 20,
- borderBottomLeftRadius: 20,
+ colorTipStyle: {
+ width: 25,
+ borderTopLeftRadius: 10,
+ borderBottomLeftRadius: 10,
},
- textSection: {
- flexDirection: "column",
- alignContent: "space-between",
- alignItems:"flex-start",
+ textViewStyle: {
+ paddingVertical: 5,
paddingLeft: 10,
- flex:1,
alignSelf: "stretch",
- paddingVertical: 5
},
- valueSection: {
- justifyContent:"center",
- borderTopRightRadius: 20,
- borderBottomRightRadius: 20,
+ textViewTextStyle: {
+ fontSize: 30,
+ fontWeight: "bold",
+ },
+ valueViewStyle: {
+ alignSelf: "stretch",
+ flex: 1,
+ flexDirection: "row-reverse",
+ alignItems: "center",
+ paddingHorizontal: 10,
+ },
+ valueViewTextStyle: {
+ fontSize: 20,
}
})
\ No newline at end of file
diff --git a/components/common/CustomCard.tsx b/components/common/CustomCard.tsx
index d81020e..5358d51 100644
--- a/components/common/CustomCard.tsx
+++ b/components/common/CustomCard.tsx
@@ -42,7 +42,7 @@ const styles = StyleSheet.create({
flexDirection: "row",
alignItems: "stretch",
alignContent: "space-between",
- borderRadius: 20,
+ borderRadius: 10,
marginHorizontal: 10,
},
boxShadow: {},