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': '登录后设置' } }