diff --git a/src/lib/routes/tab-to-nav-item.ts b/src/lib/routes/tab-to-nav-item.ts index f79774b5f1..38d58b25a4 100644 --- a/src/lib/routes/tab-to-nav-item.ts +++ b/src/lib/routes/tab-to-nav-item.ts @@ -1,3 +1,5 @@ +import {type Events} from '#/analytics/metrics/types' + export type SharedNavTab = | 'Home' | 'Search' @@ -7,7 +9,7 @@ export type SharedNavTab = export const TAB_TO_NAV_ITEM: Record< SharedNavTab, - 'home' | 'search' | 'chat' | 'notifications' | 'profile' + Events['nav:click']['item'] > = { Home: 'home', Search: 'search', diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index f19e51509f..600f68e088 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -84,21 +84,11 @@ import * as Prompt from '#/components/Prompt' import {Text} from '#/components/Typography' import {useAgeAssurance} from '#/ageAssurance' import {useAnalytics} from '#/analytics' +import {type Events} from '#/analytics/metrics/types' import {useActorStatus} from '#/features/liveNow' import {router} from '#/routes' import {PlatformInfo} from '../../../../modules/expo-bluesky-swiss-army' -type LeftNavItem = - | 'home' - | 'search' - | 'chat' - | 'notifications' - | 'feeds' - | 'lists' - | 'saved' - | 'profile' - | 'settings' - const LARGE_ELEMENT_SIZE = 48 const NAV_ICON_WIDTH = 28 @@ -401,7 +391,7 @@ interface NavItemProps { } label: string minimal: boolean - navItem: LeftNavItem + navItem: Events['nav:click']['item'] } function NavItem({ count,