Skip to content

Commit

Permalink
Merge branch 'HideStaffEmail'
Browse files Browse the repository at this point in the history
  • Loading branch information
leomet07 committed Mar 3, 2024
2 parents 9da5160 + f8e9264 commit 63252d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pages/staff/[staff_identifier].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ function StaffMember(props: Props) {
staff_member.description ||
`${staff_member.name} at The Stuyvesant Spectator`;

const display_email = staff_member.email.replaceAll("@", " [ at ] ").replaceAll(".", " [ dot ] ");

const display_email = staff_member.email
.replace(/@/g, " [ at ] ")
.replace(/\./g, " [ dot ] ");

return (
<div>
<Head>
Expand All @@ -52,9 +54,7 @@ function StaffMember(props: Props) {
<span id={styles.slug}>({staff_member.slug})</span>
</h1>

<span id={styles.email}>
{display_email}
</span>
<span id={styles.email}>{display_email}</span>
<p id={styles.description}>{staff_member.description}</p>

<ListArticleDisplay articles={props.staff_articles} />
Expand Down

0 comments on commit 63252d9

Please sign in to comment.