Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

Fix mobile note layout

François Zaninotto322b0e97114c
diff --git a/src/components/atomic-crm/notes/NotesIteratorMobile.tsx b/src/components/atomic-crm/notes/NotesIteratorMobile.tsx
index 937d55f6..f979a3cd 100644
--- a/src/components/atomic-crm/notes/NotesIteratorMobile.tsx
+++ b/src/components/atomic-crm/notes/NotesIteratorMobile.tsx
@@ -109,12 +109,7 @@ export const NoteMobile = ({
>
<div className="flex items-center space-x-2 w-full">
<div className="inline-flex h-full items-center text-sm text-muted-foreground">
- {translate(
- isCurrentUser
- ? "resources.notes.you_added"
- : "resources.notes.author_added",
- { name: salesName },
- )}{" "}
+ {isCurrentUser ? translate("resources.notes.you") : salesName}{" "}
{showStatus && note.status && (
<Status className="ml-2" status={note.status} />
)}
diff --git a/src/components/atomic-crm/providers/commons/englishCrmMessages.ts b/src/components/atomic-crm/providers/commons/englishCrmMessages.ts
index 5a893597..cfc831aa 100644
--- a/src/components/atomic-crm/providers/commons/englishCrmMessages.ts
+++ b/src/components/atomic-crm/providers/commons/englishCrmMessages.ts
@@ -244,6 +244,7 @@ export const englishCrmMessages = {
empty: "No notes yet",
author_added: "%{name} added a note",
you_added: "You added a note",
+ you: 'You',
list: {
error_loading: "Error loading notes",
},
diff --git a/src/components/atomic-crm/providers/commons/frenchCrmMessages.ts b/src/components/atomic-crm/providers/commons/frenchCrmMessages.ts
index 155847a6..4af57680 100644
--- a/src/components/atomic-crm/providers/commons/frenchCrmMessages.ts
+++ b/src/components/atomic-crm/providers/commons/frenchCrmMessages.ts
@@ -248,6 +248,7 @@ export const frenchCrmMessages = {
empty: "Aucune note pour l'instant",
author_added: "%{name} a ajouté une note",
you_added: "Vous avez ajouté une note",
+ you: 'Vous',
list: {
error_loading: "Erreur lors du chargement des notes",
},