fix: price labels use user's selected currency instead of hardcoded $
All checks were successful
CI / ci (push) Successful in 1m21s
CI / e2e (push) Has been skipped
CI / deploy (push) Successful in 15s

Replaced hardcoded "Price ($)" labels across 6 components and 2 locale
files to display the user's selected currency (EUR, GBP, USD, etc.).
AddToCollectionModal also updated to show correct currency.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-13 21:33:32 +02:00
parent 23027551b4
commit c4ddc573d4
9 changed files with 23 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";
import { toast } from "sonner";
import { useCategories } from "../hooks/useCategories";
import { useCurrency } from "../hooks/useCurrency";
import { useCreateItem } from "../hooks/useItems";
import { useUIStore } from "../stores/uiStore";
import { CategoryPicker } from "./CategoryPicker";
@@ -12,6 +13,7 @@ export function AddToCollectionModal() {
const closeAddToCollection = useUIStore((s) => s.closeAddToCollection);
const { data: categories } = useCategories();
const { currency } = useCurrency();
const createItem = useCreateItem();
const [categoryId, setCategoryId] = useState<number | null>(null);
@@ -127,7 +129,7 @@ export function AddToCollectionModal() {
htmlFor="collection-price"
className="block text-sm font-medium text-gray-700 mb-1"
>
Purchase Price ($)
Purchase Price ({currency})
</label>
<input
id="collection-price"