Clean twitter and website user urls
This commit is contained in:
parent
9ba7c04524
commit
d6d72aa619
|
@ -87,7 +87,9 @@ export function UserPage(props: { user: User; currentUser?: User }) {
|
||||||
|
|
||||||
<Col className="sm:flex-row sm:gap-4">
|
<Col className="sm:flex-row sm:gap-4">
|
||||||
{user.website && (
|
{user.website && (
|
||||||
<SiteLink href={user.website}>
|
<SiteLink
|
||||||
|
href={user.website.replace('https://manifold.markets/', '')}
|
||||||
|
>
|
||||||
<Row className="items-center gap-1">
|
<Row className="items-center gap-1">
|
||||||
<LinkIcon className="h-4 w-4" />
|
<LinkIcon className="h-4 w-4" />
|
||||||
<span className="text-sm text-gray-500">{user.website}</span>
|
<span className="text-sm text-gray-500">{user.website}</span>
|
||||||
|
@ -96,7 +98,13 @@ export function UserPage(props: { user: User; currentUser?: User }) {
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{user.twitterHandle && (
|
{user.twitterHandle && (
|
||||||
<SiteLink href={`https://twitter.com/${user.twitterHandle}`}>
|
<SiteLink
|
||||||
|
href={`https://twitter.com/${user.twitterHandle
|
||||||
|
.replace('https://www.twitter.com/', '')
|
||||||
|
.replace('https://twitter.com/', '')
|
||||||
|
.replace('www.twitter.com/', '')
|
||||||
|
.replace('twitter.com/', '')}`}
|
||||||
|
>
|
||||||
<Row className="items-center gap-1">
|
<Row className="items-center gap-1">
|
||||||
<img
|
<img
|
||||||
src="/twitter-logo.svg"
|
src="/twitter-logo.svg"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user