From 5b6dbd2a6d312ac0cc93fe2c061354293c45d86f Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 20 Feb 2025 11:29:29 +0800 Subject: [PATCH] fix: types --- apps/mobile/src/modules/settings/SettingsList.tsx | 7 ++----- apps/mobile/src/modules/settings/types.ts | 5 ++--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/apps/mobile/src/modules/settings/SettingsList.tsx b/apps/mobile/src/modules/settings/SettingsList.tsx index 09e8f5585..8004cc1e5 100644 --- a/apps/mobile/src/modules/settings/SettingsList.tsx +++ b/apps/mobile/src/modules/settings/SettingsList.tsx @@ -102,11 +102,8 @@ const SettingGroupNavigationLinks: GroupNavigationLink[] = [ { label: "Account", icon: UserSettingCuteFiIcon, - onPress: (navigation, scrollRef) => { - scrollRef.current?.scrollTo({ y: 0, animated: true }) - setTimeout(() => { - navigation.navigate("Account") - }, 100) + onPress: (navigation) => { + navigation.navigate("Account") }, iconBackgroundColor: "#d08700", }, diff --git a/apps/mobile/src/modules/settings/types.ts b/apps/mobile/src/modules/settings/types.ts index 87f056e3d..4ee48516f 100644 --- a/apps/mobile/src/modules/settings/types.ts +++ b/apps/mobile/src/modules/settings/types.ts @@ -5,12 +5,11 @@ export type SettingsStackParamList = { Notifications: undefined Appearance: undefined Data: undefined + Account: undefined Actions: undefined Lists: undefined Feeds: undefined Privacy: undefined About: undefined - ManageList: { - id: string - } + ManageList: { id: string } }