Skip to content

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

fix prettier

François Zaninotto19723c88cf67
diff --git a/src/components/atomic-crm/contacts/ContactList.tsx b/src/components/atomic-crm/contacts/ContactList.tsx
index 3df2aea6..cc897151 100644
--- a/src/components/atomic-crm/contacts/ContactList.tsx
+++ b/src/components/atomic-crm/contacts/ContactList.tsx
@@ -154,9 +154,10 @@ const exporter: Exporter<Contact> = async (records, fetchRelatedRecords) => {
contact.company_id != null
? companies[contact.company_id].name
: undefined,
- sales: contact.sales_id != null
- ? `${sales[contact.sales_id].first_name} ${sales[contact.sales_id].last_name}`
- : undefined,
+ sales:
+ contact.sales_id != null
+ ? `${sales[contact.sales_id].first_name} ${sales[contact.sales_id].last_name}`
+ : undefined,
tags: contact.tags.map((tagId) => tags[tagId].name).join(", "),
email_work: contact.email_jsonb?.find((email) => email.type === "Work")
?.email,
diff --git a/src/components/atomic-crm/providers/commons/activity.ts b/src/components/atomic-crm/providers/commons/activity.ts
index 7f41cc24..d7203c45 100644
--- a/src/components/atomic-crm/providers/commons/activity.ts
+++ b/src/components/atomic-crm/providers/commons/activity.ts
@@ -109,7 +109,10 @@ async function getNewContactsAndNotes(
);
const newContacts = contacts
- .filter((contact): contact is Contact & { company_id: Identifier } => contact.company_id != null)
+ .filter(
+ (contact): contact is Contact & { company_id: Identifier } =>
+ contact.company_id != null,
+ )
.map((contact) => ({
id: `contact.${contact.id}.created`,
type: CONTACT_CREATED,
diff --git a/src/components/atomic-crm/providers/supabase/dataProvider.ts b/src/components/atomic-crm/providers/supabase/dataProvider.ts
index d588e9aa..664943d8 100644
--- a/src/components/atomic-crm/providers/supabase/dataProvider.ts
+++ b/src/components/atomic-crm/providers/supabase/dataProvider.ts
@@ -404,8 +404,8 @@ const uploadToBucket = async (fi: RAFile) => {
if (!fi.src.startsWith("blob:") && !fi.src.startsWith("data:")) {
// Sign URL check if path exists in the bucket
if (fi.path) {
- const { error } = await getSupabaseClient().storage
- .from(ATTACHMENTS_BUCKET)
+ const { error } = await getSupabaseClient()
+ .storage.from(ATTACHMENTS_BUCKET)
.createSignedUrl(fi.path, 60);
if (!error) {
@@ -438,8 +438,8 @@ const uploadToBucket = async (fi: RAFile) => {
const fileExt = fileParts.length > 1 ? `.${file.name.split(".").pop()}` : "";
const fileName = `${Math.random()}${fileExt}`;
const filePath = `${fileName}`;
- const { error: uploadError } = await getSupabaseClient().storage
- .from(ATTACHMENTS_BUCKET)
+ const { error: uploadError } = await getSupabaseClient()
+ .storage.from(ATTACHMENTS_BUCKET)
.upload(filePath, dataContent);
if (uploadError) {
@@ -447,8 +447,8 @@ const uploadToBucket = async (fi: RAFile) => {
throw new Error("Failed to upload attachment");
}
- const { data } = getSupabaseClient().storage
- .from(ATTACHMENTS_BUCKET)
+ const { data } = getSupabaseClient()
+ .storage.from(ATTACHMENTS_BUCKET)
.getPublicUrl(filePath);
fi.path = filePath;