Skip to content

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

contact list: uniformize component naming

Jean-Baptiste Kaiserb17336f426eb
diff --git a/src/components/atomic-crm/contacts/ContactList.tsx b/src/components/atomic-crm/contacts/ContactList.tsx
index 91f8d3dc..5d3477e2 100644
--- a/src/components/atomic-crm/contacts/ContactList.tsx
+++ b/src/components/atomic-crm/contacts/ContactList.tsx
@@ -45,7 +45,7 @@ const ContactListDesktop = () => {
sort={{ field: "last_seen", order: "DESC" }}
exporter={exporter}
>
- <DesktopContactListLayout />
+ <ContactListLayoutDesktop />
</List>
);
};
@@ -61,12 +61,12 @@ const ContactListMobile = () => {
sort={{ field: "last_seen", order: "DESC" }}
exporter={exporter}
>
- <MobileContactListLayout />
+ <ContactListLayoutMobile />
</InfiniteListBase>
);
};
-const DesktopContactListLayout = () => {
+const ContactListLayoutDesktop = () => {
const { data, isPending, filterValues } = useListContext();
const hasFilters = filterValues && Object.keys(filterValues).length > 0;
@@ -88,7 +88,7 @@ const DesktopContactListLayout = () => {
);
};
-const MobileContactListLayout = () => {
+const ContactListLayoutMobile = () => {
const { data, isPending, filterValues } = useListContext();
const hasFilters = filterValues && Object.keys(filterValues).length > 0;