Make Invite to collaborate functional with mailto or contact fallback
cgen-c7fcffe5494c4289aeca4d5100a7b4ff
This commit is contained in:
parent
2383b9b5f4
commit
29d3b98e38
1 changed files with 10 additions and 6 deletions
|
|
@ -486,13 +486,17 @@ const ProfilePassport = () => {
|
||||||
Manage connections
|
Manage connections
|
||||||
</Link>
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
|
) : profile.email ? (
|
||||||
|
<Button asChild variant="outline" className="border-slate-700/70 text-slate-100">
|
||||||
|
<a href={`mailto:${profile.email}?subject=${encodeURIComponent("Collaboration invite")}&body=${encodeURIComponent("Hi, I'd like to collaborate on a project.")}`}>
|
||||||
|
Invite to collaborate
|
||||||
|
</a>
|
||||||
|
</Button>
|
||||||
) : (
|
) : (
|
||||||
<Button
|
<Button asChild variant="outline" className="border-slate-700/70 text-slate-100">
|
||||||
asChild
|
<Link to={`/contact?topic=collaboration&about=${encodeURIComponent(profile.username || profile.full_name || "member")}`}>
|
||||||
variant="outline"
|
Invite to collaborate
|
||||||
className="border-slate-700/70 text-slate-100"
|
</Link>
|
||||||
>
|
|
||||||
<Link to="/dashboard">Invite to collaborate</Link>
|
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue