Use source of truth
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user