Skip to content

Commit

Permalink
HK-179-Email to hackers (#148)
Browse files Browse the repository at this point in the history
* added mailto using Link

* with prettier
  • Loading branch information
meisullum authored Dec 17, 2024
1 parent 5c6bcb8 commit ee45a72
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/web/src/app/admin/users/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ export default async function Page({ params }: { params: { slug: string } }) {
<Link href={`/@${user.hackerTag}`} target="_blank">
<Button variant={"outline"}>Hacker Profile</Button>
</Link>
<Button variant={"outline"}>Email Hacker</Button>

<Link href="mailto:${user.email}">
<Button variant={"outline"}>Email Hacker</Button>
</Link>

<UpdateRoleDialog
name={`${user.firstName} ${user.lastName}`}
canMakeAdmins={admin.role === "super_admin"}
Expand Down

0 comments on commit ee45a72

Please sign in to comment.