From 7a2520d488382fbd3ea37a23acda529ef86ab641 Mon Sep 17 00:00:00 2001 From: anime Date: Sat, 4 Jan 2025 20:24:46 +0800 Subject: [PATCH] =?UTF-8?q?perf(=E4=BD=BF=E7=94=A8switch=20case=E8=80=8C?= =?UTF-8?q?=E9=9D=9E=E8=BF=9E=E7=BB=AD=E7=9A=84if):=20=E8=99=BD=E7=84=B6?= =?UTF-8?q?=E6=B2=A1=E5=95=A5=E5=A4=AA=E5=A4=A7=E7=9A=84=E9=80=9F=E5=BA=A6?= =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=8C=E4=BD=86=E6=98=AF=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=8F=AF=E8=AF=BB=E6=80=A7=E6=9B=B4=E5=BC=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ShareButtons.js | 569 ++++++++++++++++++------------------- 1 file changed, 274 insertions(+), 295 deletions(-) diff --git a/components/ShareButtons.js b/components/ShareButtons.js index 5ad3bae5..29fd37b4 100644 --- a/components/ShareButtons.js +++ b/components/ShareButtons.js @@ -92,303 +92,282 @@ const ShareButtons = ({ post }) => { return ( <> {services.map(singleService => { - if (singleService === 'facebook') { - return ( - - - - ) - } - if (singleService === 'messenger') { - return ( - - - - ) - } - if (singleService === 'line') { - return ( - - - - ) - } - if (singleService === 'reddit') { - return ( - - - - ) - } - if (singleService === 'email') { - return ( - - - - ) - } - if (singleService === 'twitter') { - return ( - - - - ) - } - if (singleService === 'telegram') { - return ( - - - - ) - } - if (singleService === 'whatsapp') { - return ( - - - - ) - } - if (singleService === 'linkedin') { - return ( - - - - ) - } - if (singleService === 'pinterest') { - return ( - - - - ) - } - if (singleService === 'vkshare') { - return ( - - - - ) - } - if (singleService === 'okshare') { - return ( - - - - ) - } - if (singleService === 'tumblr') { - return ( - - - - ) - } - if (singleService === 'livejournal') { - return ( - - - - ) - } - if (singleService === 'mailru') { - return ( - - - - ) - } - if (singleService === 'viber') { - return ( - - - - ) - } - if (singleService === 'workplace') { - return ( - - - - ) - } - if (singleService === 'weibo') { - return ( - - - - ) - } - if (singleService === 'pocket') { - return ( - - - - ) - } - if (singleService === 'instapaper') { - return ( - - - - ) - } - if (singleService === 'hatena') { - return ( - - - - ) - } - if (singleService === 'qq') { - return ( - - ) - } - if (singleService === 'wechat') { - return ( - + ) + case 'wechat': + return ( + - ) +
+
+
+ {qrCodeShow && } +
+ + {locale.COMMON.SCAN_QR_CODE} + +
+
+ + ) + case 'link': + return ( + + ) + default: + return <> } - if (singleService === 'link') { - return ( - - ) - } - return <> })} )