From 56bf52e6418922e9798a0d8d4d69604360ec57e6 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sat, 14 Mar 2020 12:48:11 +0400 Subject: [PATCH] Add hackernews share url --- components/share-icon/index.js | 1 + components/share-page/index.js | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/components/share-icon/index.js b/components/share-icon/index.js index f655fabc7..c4b9caae6 100644 --- a/components/share-icon/index.js +++ b/components/share-icon/index.js @@ -5,6 +5,7 @@ export const ShareIcon = styled.a` width: 22px; height: 22px; margin-bottom: 8px; + text-align: center; svg { height: 22px !important; diff --git a/components/share-page/index.js b/components/share-page/index.js index 37348576d..9d0a10aa3 100644 --- a/components/share-page/index.js +++ b/components/share-page/index.js @@ -1,7 +1,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; -import { faFacebookSquare, faRedditSquare, faTwitterSquare } from '@fortawesome/free-brands-svg-icons' +import { faFacebookSquare, faHackerNewsSquare, faRedditSquare, faTwitterSquare } from '@fortawesome/free-brands-svg-icons'; -import { getFacebookShareUrl, getRedditShareUrl, getTwitterShareUrl } from "lib/url"; +import { getFacebookShareUrl, getHnShareUrl, getRedditShareUrl, getTwitterShareUrl } from 'lib/url'; import { ShareIconsList, ShareWrap } from './style'; import { ShareIcon } from 'components/share-icon'; @@ -24,6 +24,9 @@ const SharePage = ({ + + +