A full-featured CRM built with React, shadcn/ui, and Supabase.
Add missing translated labels in deal forms
Anibal Svarcasaa9019e7ce11
diff --git a/src/components/atomic-crm/deals/DealInputs.tsx b/src/components/atomic-crm/deals/DealInputs.tsxindex b01e9b4b..25361dc6 100644--- a/src/components/atomic-crm/deals/DealInputs.tsx+++ b/src/components/atomic-crm/deals/DealInputs.tsx@@ -31,8 +31,19 @@ export const DealInputs = () => {const DealInfoInputs = () => {return (<div className="flex flex-col gap-4 flex-1">- <TextInput source="name" validate={required()} helperText={false} />- <TextInput source="description" multiline rows={3} helperText={false} />+ <TextInput+ source="name"+ label="resources.deals.fields.name"+ validate={required()}+ helperText={false}+ />+ <TextInput+ source="description"+ label="resources.deals.fields.description"+ multiline+ rows={3}+ helperText={false}+ /></div>);};@@ -73,6 +84,7 @@ const DealMiscInputs = () => {<SelectInputsource="category"+ label="resources.deals.fields.category"choices={dealCategories}optionText="label"optionValue="value"@@ -80,6 +92,7 @@ const DealMiscInputs = () => {/><NumberInputsource="amount"+ label="resources.deals.fields.amount"defaultValue={0}helperText={false}validate={required()}@@ -87,11 +100,13 @@ const DealMiscInputs = () => {<DateInputvalidate={required()}source="expected_closing_date"+ label="resources.deals.fields.expected_closing_date"helperText={false}defaultValue={new Date().toISOString().split("T")[0]}/><SelectInputsource="stage"+ label="resources.deals.fields.stage"choices={dealStages}optionText="label"optionValue="value"diff --git a/src/components/atomic-crm/deals/DealList.tsx b/src/components/atomic-crm/deals/DealList.tsxindex 2503de57..6a8e5064 100644--- a/src/components/atomic-crm/deals/DealList.tsx+++ b/src/components/atomic-crm/deals/DealList.tsx@@ -36,6 +36,7 @@ const DealList = () => {</ReferenceInput>,<SelectInputsource="category"+ label={false}emptyText={translate("resources.deals.fields.category", {_: "Category",})}