We have a "Contact" column in the table on the home page, but we do not have contact information for any rows:
select count(*) from leads where contact_name is not null;
-[ RECORD 1 ]
count | 0
However, we have email addresses that are not being used in the table
select count(*) from leads where email is not null;
-[ RECORD 1 ]
count | 758
Replace the "Contact" column with "Email".
Include a link in each row with href="mailto..." that includes the provided email address. The email address can be accessed by the email property of the leads object.
If no email address is available for a lead, display nothing in the email column for that row.
If you want to be super fancy, use an icon instead of email text. The Email icon from the MaterialUI docs seems like a good candidate.
We have a "Contact" column in the table on the home page, but we do not have contact information for any rows:
However, we have email addresses that are not being used in the table
Replace the "Contact" column with "Email".
Include a link in each row with href="mailto..." that includes the provided email address. The email address can be accessed by the
email
property of theleads
object.If no email address is available for a lead, display nothing in the email column for that row.
If you want to be super fancy, use an icon instead of email text. The
Email
icon from the MaterialUI docs seems like a good candidate.