A full-featured CRM built with React, shadcn/ui, and Supabase.
style: apply prettier to CRM i18n updates
Anibal Svarcasc87c1f26de08
diff --git a/src/components/atomic-crm/companies/CompanyAside.tsx b/src/components/atomic-crm/companies/CompanyAside.tsxindex c4d26d8d..7e70ee7c 100644--- a/src/components/atomic-crm/companies/CompanyAside.tsx+++ b/src/components/atomic-crm/companies/CompanyAside.tsx@@ -123,7 +123,9 @@ export const ContextInfo = ({ record }: { record: Company }) => {)?.label;return (- <AsideSection title={translate("crm.companies.aside.context", { _: "Context" })}>+ <AsideSection+ title={translate("crm.companies.aside.context", { _: "Context" })}+ >{sectorLabel && (<span>{translate("crm.companies.fields.sector", { _: "Sector" })}:{" "}diff --git a/src/components/atomic-crm/contacts/ContactAside.tsx b/src/components/atomic-crm/contacts/ContactAside.tsxindex 22918d3b..327efecb 100644--- a/src/components/atomic-crm/contacts/ContactAside.tsx+++ b/src/components/atomic-crm/contacts/ContactAside.tsx@@ -53,7 +53,9 @@ export const ContactAside = ({ link = "edit" }: { link?: "edit" | "show" }) => {<ContactBackgroundInfo /></AsideSection>- <AsideSection title={translate("crm.tags.name", { smart_count: 2, _: "Tags" })}>+ <AsideSection+ title={translate("crm.tags.name", { smart_count: 2, _: "Tags" })}+ ><TagsListEdit /></AsideSection>diff --git a/src/components/atomic-crm/contacts/ContactListFilter.tsx b/src/components/atomic-crm/contacts/ContactListFilter.tsxindex a27acef9..a954d3f4 100644--- a/src/components/atomic-crm/contacts/ContactListFilter.tsx+++ b/src/components/atomic-crm/contacts/ContactListFilter.tsx@@ -1,6 +1,11 @@import { endOfYesterday, startOfMonth, startOfWeek, subMonths } from "date-fns";import { CheckSquare, Clock, Tag, TrendingUp, Users } from "lucide-react";-import { useGetIdentity, useGetList, useListContext, useTranslate } from "ra-core";+import {+ useGetIdentity,+ useGetList,+ useListContext,+ useTranslate,+} from "ra-core";import { ToggleFilterButton } from "@/components/admin/toggle-filter-button";import { Badge } from "@/components/ui/badge";@@ -46,7 +51,9 @@ export const ContactListFilter = () => {/><ToggleFilterButtonclassName="w-auto md:w-full justify-between h-10 md:h-8"- label={translate("crm.contacts.filters.this_week", { _: "This week" })}+ label={translate("crm.contacts.filters.this_week", {+ _: "This week",+ })}value={{"last_seen@gte": startOfWeek(new Date()).toISOString(),"last_seen@lte": undefined,diff --git a/src/components/atomic-crm/dashboard/HotContacts.tsx b/src/components/atomic-crm/dashboard/HotContacts.tsxindex 6ef273c1..6f4164a5 100644--- a/src/components/atomic-crm/dashboard/HotContacts.tsx+++ b/src/components/atomic-crm/dashboard/HotContacts.tsx@@ -87,8 +87,7 @@ export const HotContacts = () => {</p><p className="text-sm">{translate("crm.contacts.hot.empty_change_status", {- _:- 'Change the status of a contact by adding a note to that contact and clicking on "show options".',+ _: 'Change the status of a contact by adding a note to that contact and clicking on "show options".',})}</p></div>diff --git a/src/components/atomic-crm/sales/SalesList.tsx b/src/components/atomic-crm/sales/SalesList.tsxindex 161dc1d0..290c5b41 100644--- a/src/components/atomic-crm/sales/SalesList.tsx+++ b/src/components/atomic-crm/sales/SalesList.tsx@@ -13,7 +13,9 @@ const SalesListActions = () => {return (<TopToolbar><ExportButton />- <CreateButton label={translate("crm.sales.action.new", { _: "New user" })} />+ <CreateButton+ label={translate("crm.sales.action.new", { _: "New user" })}+ /></TopToolbar>);};diff --git a/src/components/atomic-crm/settings/ProfilePage.tsx b/src/components/atomic-crm/settings/ProfilePage.tsxindex 5ed8e921..bf1cbf4c 100644--- a/src/components/atomic-crm/settings/ProfilePage.tsx+++ b/src/components/atomic-crm/settings/ProfilePage.tsx@@ -216,13 +216,11 @@ const ProfileForm = ({</h2><p className="text-sm text-muted-foreground">{translate("crm.profile.inbound.description_prefix", {- _:- "You can start sending emails to your server's inbound email address, e.g. by adding it to the",+ _: "You can start sending emails to your server's inbound email address, e.g. by adding it to the",})}{" "}<b> Cc: </b>{" "}{translate("crm.profile.inbound.description_suffix", {- _:- "field. Atomic CRM will process the emails and add notes to the corresponding contacts.",+ _: "field. Atomic CRM will process the emails and add notes to the corresponding contacts.",})}</p><CopyPaste />diff --git a/src/components/atomic-crm/tags/TagDialog.tsx b/src/components/atomic-crm/tags/TagDialog.tsxindex 63a6f588..cdd42795 100644--- a/src/components/atomic-crm/tags/TagDialog.tsx+++ b/src/components/atomic-crm/tags/TagDialog.tsx@@ -87,7 +87,9 @@ export function TagDialog({</div><div className="space-y-2">- <Label>{translate("crm.tags.dialog.color", { _: "Color" })}</Label>+ <Label>+ {translate("crm.tags.dialog.color", { _: "Color" })}+ </Label><div className="flex flex-wrap">{colors.map((color) => (<RoundButton