mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
twitter link
This commit is contained in:
1 parent
608005c657
commit
70b658ca78
1 file changed
+9
-1
@@ -124,10 +124,18 @@ function ProfileFc(props: Props) {
|
||||
}
|
||||
|
||||
if (userData !== undefined && userData.twitter_username) {
|
||||
let twitterUrl = `https://twitter.com/${userData.twitter_username}`;
|
||||
let twitterLink = (
|
||||
<a
|
||||
href={twitterUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer nofollow"
|
||||
>@{userData.twitter_username}</a>
|
||||
);
|
||||
profileRows.push(
|
||||
<tr key="twitter">
|
||||
<th>Twitter</th>
|
||||
<td>{userData.twitter_username}</td>
|
||||
<td>{twitterLink}</td>
|
||||
</tr>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user