Skip to content

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

fix h1 in h2

ThieryMichel3d1cf1d696e9
diff --git a/src/components/atomic-crm/notes/NoteCreateSheet.tsx b/src/components/atomic-crm/notes/NoteCreateSheet.tsx
index 052d01fb..594382ef 100644
--- a/src/components/atomic-crm/notes/NoteCreateSheet.tsx
+++ b/src/components/atomic-crm/notes/NoteCreateSheet.tsx
@@ -68,13 +68,13 @@ export const NoteCreateSheet = ({
<CreateSheet
resource="contact_notes"
title={
- <h1 className="text-xl font-semibold truncate pr-10">
+ <span className="text-xl font-semibold truncate pr-10">
{!selectContact
? translate("resources.notes.sheet.create_for", {
name: getContactRepresentation(contact!),
})
: translate("resources.notes.sheet.create")}
- </h1>
+ </span>
}
redirect={false}
defaultValues={{ sales_id: identity?.id }}
diff --git a/src/components/atomic-crm/notes/NoteEditSheet.tsx b/src/components/atomic-crm/notes/NoteEditSheet.tsx
index 7fc2dc21..e5960307 100644
--- a/src/components/atomic-crm/notes/NoteEditSheet.tsx
+++ b/src/components/atomic-crm/notes/NoteEditSheet.tsx
@@ -41,13 +41,13 @@ export const NoteEditSheet = ({
source={foreignKeyMapping["contacts"]}
reference="contacts"
render={({ referenceRecord }) => (
- <h1 className="text-xl font-semibold truncate pr-10">
+ <span className="text-xl font-semibold truncate pr-10">
{referenceRecord
? translate("resources.notes.sheet.edit_for", {
name: getContactRepresentation(referenceRecord),
})
: translate("resources.notes.sheet.edit")}
- </h1>
+ </span>
)}
/>
}
diff --git a/src/components/atomic-crm/tasks/TaskCreateSheet.tsx b/src/components/atomic-crm/tasks/TaskCreateSheet.tsx
index ba36199f..372b94c1 100644
--- a/src/components/atomic-crm/tasks/TaskCreateSheet.tsx
+++ b/src/components/atomic-crm/tasks/TaskCreateSheet.tsx
@@ -66,13 +66,13 @@ export const TaskCreateSheet = ({
<CreateSheet
resource="tasks"
title={
- <h1 className="text-xl font-semibold truncate pr-10">
+ <span className="text-xl font-semibold truncate pr-10">
{!selectContact
? translate("resources.tasks.dialog.create_for", {
name: getContactRepresentation(contact!),
})
: translate("resources.tasks.dialog.create")}
- </h1>
+ </span>
}
redirect={false}
record={{
diff --git a/src/components/atomic-crm/tasks/TaskEditSheet.tsx b/src/components/atomic-crm/tasks/TaskEditSheet.tsx
index af16031a..87a894ea 100644
--- a/src/components/atomic-crm/tasks/TaskEditSheet.tsx
+++ b/src/components/atomic-crm/tasks/TaskEditSheet.tsx
@@ -26,13 +26,13 @@ export const TaskEditSheet = ({
source="contact_id"
reference="contacts"
render={({ referenceRecord }) => (
- <h1 className="text-xl font-semibold truncate pr-10">
+ <span className="text-xl font-semibold truncate pr-10">
{referenceRecord
? translate("resources.tasks.sheet.edit_for", {
name: getContactRepresentation(referenceRecord),
})
: translate("resources.tasks.sheet.edit")}
- </h1>
+ </span>
)}
/>
}