Skip to content

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

Fix company avatar

François Zaninotto2d89ee7e84ed
diff --git a/src/companies/CompanyAvatar.tsx b/src/companies/CompanyAvatar.tsx
index bc758880..9d4777b0 100644
--- a/src/companies/CompanyAvatar.tsx
+++ b/src/companies/CompanyAvatar.tsx
@@ -21,6 +21,9 @@ export const CompanyAvatar = (props: {
width,
height,
fontSize: height !== 40 ? '0.6rem' : undefined,
+ '&.MuiAvatar-colorDefault': {
+ color: 'primary.contrastText',
+ },
}}
>
{record.name.charAt(0)}
diff --git a/src/contacts/ContactShow.tsx b/src/contacts/ContactShow.tsx
index 34e31474..71adaf4d 100644
--- a/src/contacts/ContactShow.tsx
+++ b/src/contacts/ContactShow.tsx
@@ -56,6 +56,7 @@ const ContactShowContent = () => {
source="company_id"
reference="companies"
link="show"
+ sx={{ '& a': { textDecoration: 'none' } }}
>
<CompanyAvatar />
</ReferenceField>
diff --git a/src/deals/DealShow.tsx b/src/deals/DealShow.tsx
index 54f97835..75c97487 100644
--- a/src/deals/DealShow.tsx
+++ b/src/deals/DealShow.tsx
@@ -92,6 +92,7 @@ const DealShowContent = ({ handleClose }: { handleClose: () => void }) => {
source="company_id"
reference="companies"
link="show"
+ sx={{ '& a': { textDecoration: 'none' } }}
>
<CompanyAvatar />
</ReferenceField>