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

@@ -12,6 +12,7 @@ import {
useReorderCandidates,
useUpdateCandidate,
} from "../../../hooks/useCandidates";
import { useCurrency } from "../../../hooks/useCurrency";
import { useImpactDeltas } from "../../../hooks/useImpactDeltas";
import { useSetup } from "../../../hooks/useSetups";
import { useThread } from "../../../hooks/useThreads";
@@ -340,6 +341,7 @@ const INITIAL_MODAL_FORM: ModalFormData = {
function AddCandidateModal({ threadId, onClose }: AddCandidateModalProps) {
const createCandidate = useCreateCandidate(threadId);
const { currency } = useCurrency();
const [form, setForm] = useState<ModalFormData>(INITIAL_MODAL_FORM);
const [errors, setErrors] = useState<Record<string, string>>({});
@@ -490,7 +492,7 @@ function AddCandidateModal({ threadId, onClose }: AddCandidateModalProps) {
htmlFor="modal-candidate-price"
className="block text-sm font-medium text-gray-700 mb-1"
>
Price ($)
{`Price (${currency})`}
</label>
<input
id="modal-candidate-price"