change email field to contact info

Giving up your email shouldn't be necessary. Therefore, I have decided to change it to a general contact info field. This change is to simply reflect variable naming of the backend
This commit is contained in:
LBlend committed 2024-03-04 16:23:06 +01:00
1 parent 0a62a61ccf
commit 232f69472c
1 file changed
+8 -2
+8 -2
View File
@@ -15,7 +15,7 @@ const BoardMembers = () => {
node {
_id
boardMember
email
contactInfo
name
role
image {
@@ -53,7 +53,13 @@ const BoardMembers = () => {
</div>
<p>{member.bio}</p>
<div className={styles.footer}>
<p className="text-center">{member.email ? member.email : <i>Ikke oppgitt</i>}</p>
<p className="text-center">
{member.contactInfo ? (
member.contactInfo
) : (
<i>Ingen kontaktinfo</i>
)}
</p>
</div>
</article>
))}