fix: price labels use user's selected currency instead of hardcoded $
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user