From b92ec5e54c6274787132b10fa75ed6a5688d0a71 Mon Sep 17 00:00:00 2001 From: JustSong Date: Sun, 21 May 2023 11:22:28 +0800 Subject: [PATCH] fix: show bind options only available (close #65) --- web/src/components/PersonalSetting.js | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/web/src/components/PersonalSetting.js b/web/src/components/PersonalSetting.js index 63077ec7..d3216811 100644 --- a/web/src/components/PersonalSetting.js +++ b/web/src/components/PersonalSetting.js @@ -112,13 +112,17 @@ const PersonalSetting = () => {
账号绑定
- + { + status.wechat_login && ( + + ) + } setShowWeChatBindModal(false)} onOpen={() => setShowWeChatBindModal(true)} @@ -148,7 +152,11 @@ const PersonalSetting = () => { - + { + status.github_oauth && ( + + ) + }