Add shareable URLs in the guide

This commit is contained in:
Kamran Ahmed
2019-11-06 22:56:57 +04:00
parent 972bea55b7
commit f45d00eb22
7 changed files with 113 additions and 13 deletions

View File

@@ -10,6 +10,7 @@ import {
HeaderWrap,
} from './style';
import { getContributionUrl } from "lib/guide";
import { getTwitterUrl } from "lib/url";
const GuideHeader = ({
guide,
@@ -19,7 +20,7 @@ const GuideHeader = ({
}) => (
<HeaderWrap className="border-bottom">
<GuideMeta>
<GuideAuthor href={ author.twitter } target="_blank">
<GuideAuthor href={ getTwitterUrl(author.twitter) } target="_blank">
<AuthorImage src={ author.picture } />
{ author.name }
</GuideAuthor>