From 8326a9822bfc97331758d848f17fde27f1e3cabf Mon Sep 17 00:00:00 2001 From: Gaubee Date: Tue, 16 Dec 2025 08:58:33 +0800 Subject: [PATCH] fix(settings): route address book; disable app lock --- src/pages/settings/index.test.tsx | 7 +++++++ src/pages/settings/index.tsx | 10 +++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/pages/settings/index.test.tsx b/src/pages/settings/index.test.tsx index 9dd34c8bb..3f791e680 100644 --- a/src/pages/settings/index.test.tsx +++ b/src/pages/settings/index.test.tsx @@ -168,6 +168,13 @@ describe('SettingsPage', () => { expect(mockNavigate).toHaveBeenCalledWith({ to: '/settings/mnemonic' }); }); + it('navigates to address book page when clicking address book', async () => { + renderWithProviders(); + + await userEvent.click(screen.getByText('地址簿')); + expect(mockNavigate).toHaveBeenCalledWith({ to: '/address-book' }); + }); + it('navigates to password page when clicking change password', async () => { renderWithProviders(); diff --git a/src/pages/settings/index.tsx b/src/pages/settings/index.tsx index de189e5ea..805dd6a1a 100644 --- a/src/pages/settings/index.tsx +++ b/src/pages/settings/index.tsx @@ -74,9 +74,7 @@ export function SettingsPage() { } label="地址簿" - onClick={() => { - // TODO: 导航到地址簿页面 - }} + onClick={() => navigate({ to: '/address-book' })} /> @@ -85,10 +83,8 @@ export function SettingsPage() { } label="应用锁" - value="未设置" - onClick={() => { - // TODO: T008.x - 应用锁设置 - }} + value="暂不支持" + disabled />