Use source of truth

This commit is contained in:
Eric Bailey
2026-05-26 07:22:36 -05:00
parent 0c9a88af1c
commit 7989b21b6b
2 changed files with 5 additions and 13 deletions
+3 -1
View File
@@ -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',
+2 -12
View File
@@ -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,