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
/>