Skip to content

Commit 84dfad4

Browse files
fix: update amount badge colors
1 parent 513d621 commit 84dfad4

File tree

7 files changed

+49
-49
lines changed

7 files changed

+49
-49
lines changed

twopi-service/Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

twopi-service/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ chrono = { version = "0.4.40", features = ["serde"] }
1717
clap = { version = "4.5.36", features = ["derive"] }
1818
jiff = { version = "0.2.6", features = ["serde"] }
1919
jsonwebtoken = "9.3.1"
20-
lru = "0.13.0"
20+
lru = "0.14.0"
2121
migration = { path = "migration" }
2222
reqwest = { version = "0.12.15", features = ["json"] }
2323
sea-orm = { version = "1.1.8", features = [

twopi-web/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@kobalte/core": "^0.13.9",
2020
"@solid-primitives/storage": "^4.3.1",
2121
"@tanstack/solid-form": "^1.3.2",
22-
"@tanstack/solid-query": "^5.72.2",
22+
"@tanstack/solid-query": "^5.73.3",
2323
"@tanstack/solid-router": "^1.115.3",
2424
"@tanstack/solid-table": "^8.21.2",
2525
"@tanstack/solid-virtual": "^3.13.6",
@@ -38,10 +38,10 @@
3838
"@eslint/js": "^9.24.0",
3939
"@kobalte/tailwindcss": "^0.9.0",
4040
"@tailwindcss/vite": "^4.1.3",
41-
"@tanstack/eslint-plugin-query": "^5.72.2",
41+
"@tanstack/eslint-plugin-query": "^5.73.3",
4242
"@tanstack/router-cli": "^1.115.3",
4343
"@tanstack/router-plugin": "^1.115.3",
44-
"@tanstack/solid-query-devtools": "^5.72.2",
44+
"@tanstack/solid-query-devtools": "^5.73.3",
4545
"@tanstack/solid-router-devtools": "^1.115.3",
4646
"@typescript-eslint/parser": "^8.29.1",
4747
"clsx": "^2.1.1",

twopi-web/pnpm-lock.yaml

+34-34
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

twopi-web/src/components/TransactionRow.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ export default function TransactionRow(
7474
<Badge
7575
class={
7676
item.amount < 0
77-
? "bg-red-900"
77+
? "border-red-600 bg-red-200 text-red-900"
7878
: item.amount > 0
79-
? "bg-green-900"
80-
: ""
79+
? "border-green-600 bg-green-200 text-green-900"
80+
: "border-gray-600 bg-gray-200 text-gray-900"
8181
}
8282
>
8383
<Show when={account(item.account_id)}>

twopi-web/src/routes/app/account/$id/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ function RouteComponent() {
116116
<Badge
117117
class={
118118
account.account.starting_balance < 0
119-
? "bg-red-900"
119+
? "border-red-600 bg-red-200 text-red-900"
120120
: account.account.starting_balance > 0
121-
? "bg-green-900"
122-
: ""
121+
? "border-green-600 bg-green-200 text-green-900"
122+
: "border-gray-600 bg-gray-200 text-gray-900"
123123
}
124124
>
125125
<CurrencyDisplay

twopi-web/src/routes/app/account/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ function AccountItem(
127127
<Badge
128128
class={
129129
props.currentBalance < 0
130-
? "bg-red-900"
130+
? "border-red-600 bg-red-200 text-red-900"
131131
: props.currentBalance > 0
132-
? "bg-green-900"
133-
: ""
132+
? "border-green-600 bg-green-200 text-green-900"
133+
: "border-gray-600 bg-gray-200 text-gray-900"
134134
}
135135
>
136136
<CurrencyDisplay

0 commit comments

Comments
 (0)