From edf37bdd36c3d71a8aec9166bc636773d9f78a29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20BRUGUIER?= Date: Sun, 8 Sep 2019 19:33:06 +0200 Subject: [PATCH] Update get-contact-href.js add codepen --- src/utils/get-contact-href.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/get-contact-href.js b/src/utils/get-contact-href.js index c2b7d4d..bc485f5 100644 --- a/src/utils/get-contact-href.js +++ b/src/utils/get-contact-href.js @@ -36,6 +36,9 @@ const getContactHref = (name: string, contact: string) => { case 'weibo': href = `https://www.weibo.com/${contact}`; break; + case 'codepen': + href = `https://www.codepen.io/${contact}`; + break; default: href = contact; break; @@ -44,4 +47,4 @@ const getContactHref = (name: string, contact: string) => { return href; }; -export default getContactHref; \ No newline at end of file +export default getContactHref;