Add expense category 'Life/Donation' (#315)

* Add expense category 'Life/Donation'

* Fix category name in migration

---------

Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
This commit is contained in:
Lorenz Leutgeb
2025-04-19 21:00:03 +02:00
committed by GitHub
parent 0a16a4ad38
commit ffbcb6b74d
6 changed files with 12 additions and 6 deletions

View File

@@ -357,6 +357,7 @@
"heading": "Leben",
"Childcare": "Kinderversorgung",
"Clothing": "Kleidung",
"Donation": "Spende",
"Education": "Bildung",
"Gifts": "Geschenke",
"Insurance": "Versicherung",

View File

@@ -358,6 +358,7 @@
"heading": "Life",
"Childcare": "Childcare",
"Clothing": "Clothing",
"Donation": "Donation",
"Education": "Education",
"Gifts": "Gifts",
"Insurance": "Insurance",

10
package-lock.json generated
View File

@@ -38,7 +38,7 @@
"content-disposition": "^0.5.4",
"dayjs": "^1.11.10",
"embla-carousel-react": "^8.0.0-rc21",
"lucide-react": "^0.290.0",
"lucide-react": "^0.501.0",
"nanoid": "^5.0.4",
"negotiator": "^0.6.3",
"next": "^14.2.5",
@@ -14602,12 +14602,12 @@
}
},
"node_modules/lucide-react": {
"version": "0.290.0",
"resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.290.0.tgz",
"integrity": "sha512-CBDPRLOPjdo+bVlxhaa7FVWaB8OrZZQ34mwm0Fsz9ut6JltN/Td55640ur8bRWSJuz6+nX2klKrpBpV7ktwD3Q==",
"version": "0.501.0",
"resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.501.0.tgz",
"integrity": "sha512-E2KoyhW59fCb/yUbR3rbDer83fqn7a8NG91ZhIot2yWaPHjPyGzzsNKh40N//GezYShAuycf3TcQksRQznIsRw==",
"license": "ISC",
"peerDependencies": {
"react": "^16.5.1 || ^17.0.0 || ^18.0.0"
"react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"
}
},
"node_modules/lz-string": {

View File

@@ -45,7 +45,7 @@
"content-disposition": "^0.5.4",
"dayjs": "^1.11.10",
"embla-carousel-react": "^8.0.0-rc21",
"lucide-react": "^0.290.0",
"lucide-react": "^0.501.0",
"nanoid": "^5.0.4",
"negotiator": "^0.6.3",
"next": "^14.2.5",

View File

@@ -0,0 +1 @@
INSERT INTO "Category" ("id", "grouping", "name") VALUES (43, 'Life', 'Donation');

View File

@@ -16,6 +16,7 @@ import {
FerrisWheel,
Fuel,
Gift,
HandHelping,
Home,
Hotel,
Lamp,
@@ -96,6 +97,8 @@ function getCategoryIcon(category: string): LucideIcon {
return Baby
case 'Life/Clothing':
return Shirt
case 'Life/Donation':
return HandHelping
case 'Life/Education':
return LibraryBig
case 'Life/Gifts':