From 3bfdd7e920d90683169be412fee21a3e6eb8adc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rave=20=7C=20=E5=9B=B3=E6=9B=B8=E9=A4=A8=E7=8C=AB?= Date: Wed, 22 Jun 2022 14:23:40 +0200 Subject: [PATCH] Add platforms to share buttons (#1721) * Add Minds to share buttons * Add Telegram & WhatsApp * Adjust style on mobile * Adjust WhatsApp share url on desktop * Freeze icon size * Adjust share buttons --- static/app-strings.json | 1 - ui/component/common/icon-custom.jsx | 38 +++++++++++------------ ui/component/socialShare/view.jsx | 48 ++++++++++++++++++++--------- ui/constants/icons.js | 2 +- ui/scss/component/_card.scss | 20 ++++++++++++ ui/scss/component/_modal.scss | 4 +-- ui/scss/component/section.scss | 5 +-- 7 files changed, 76 insertions(+), 42 deletions(-) diff --git a/static/app-strings.json b/static/app-strings.json index 68d868828..91e48c73a 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -347,7 +347,6 @@ "Share on Facebook": "Share on Facebook", "Share on Twitter": "Share on Twitter", "Share on Telegram": "Share on Telegram", - "Share on LinkedIn": "Share on LinkedIn", "Share via...": "Share via...", "Embed this content": "Embed this content", "You currently have the highest bid for this name.": "You currently have the highest bid for this name.", diff --git a/ui/component/common/icon-custom.jsx b/ui/component/common/icon-custom.jsx index 3c32b8b34..34848fee4 100644 --- a/ui/component/common/icon-custom.jsx +++ b/ui/component/common/icon-custom.jsx @@ -822,6 +822,25 @@ export const icons = { // // Share modal social icons // + [ICONS.WHATSAPP]: buildIcon( + + + + + + , + { + viewBox: '0 0 60 60', + } + ), [ICONS.TWITTER]: buildIcon( - - - , - { - viewBox: '0 0 60 60', - } - ), [ICONS.EMBED]: buildIcon( +