From 9bc5fcb6420ba807f5c9668310ebfb10711eef50 Mon Sep 17 00:00:00 2001 From: codytseng Date: Mon, 20 Jan 2025 23:11:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/MailboxSetting/index.tsx | 10 ++++++++-- src/i18n/en.ts | 3 ++- src/i18n/zh.ts | 3 ++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/components/MailboxSetting/index.tsx b/src/components/MailboxSetting/index.tsx index 78974db..54785df 100644 --- a/src/components/MailboxSetting/index.tsx +++ b/src/components/MailboxSetting/index.tsx @@ -11,7 +11,7 @@ import SaveButton from './SaveButton' export default function MailboxSetting() { const { t } = useTranslation() - const { pubkey, relayList } = useNostr() + const { pubkey, relayList, checkLogin } = useNostr() const [relays, setRelays] = useState([]) const [hasChange, setHasChange] = useState(false) @@ -22,7 +22,13 @@ export default function MailboxSetting() { }, [relayList]) if (!pubkey) { - return + return ( +
+ +
+ ) } if (!relayList) { diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 68ea796..3008cf2 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -159,6 +159,7 @@ export default { Append: 'Append', 'Select relays to append': 'Select relays to append', 'calculating...': 'calculating...', - 'Calculate optimal read relays': 'Calculate optimal read relays' + 'Calculate optimal read relays': 'Calculate optimal read relays', + 'Login to set': 'Login to set' } } diff --git a/src/i18n/zh.ts b/src/i18n/zh.ts index bb732c5..92793fc 100644 --- a/src/i18n/zh.ts +++ b/src/i18n/zh.ts @@ -160,6 +160,7 @@ export default { Append: '追加', 'Select relays to append': '选择要追加的服务器', 'calculating...': '计算中...', - 'Calculate optimal read relays': '计算最佳读服务器' + 'Calculate optimal read relays': '计算最佳读服务器', + 'Login to set': '登录后设置' } }