Lint: remove unused vars
This commit is contained in:
		
							parent
							
								
									3f5c73001c
								
							
						
					
					
						commit
						53a94e2f24
					
				|  | @ -3,7 +3,6 @@ import Link from 'next/link' | ||||||
| import { | import { | ||||||
|   HomeIcon, |   HomeIcon, | ||||||
|   MenuAlt3Icon, |   MenuAlt3Icon, | ||||||
|   PresentationChartLineIcon, |  | ||||||
|   SearchIcon, |   SearchIcon, | ||||||
|   XIcon, |   XIcon, | ||||||
| } from '@heroicons/react/outline' | } from '@heroicons/react/outline' | ||||||
|  | @ -19,7 +18,7 @@ import NotificationsIcon from 'web/components/notifications-icon' | ||||||
| import { useIsIframe } from 'web/hooks/use-is-iframe' | import { useIsIframe } from 'web/hooks/use-is-iframe' | ||||||
| import { trackCallback } from 'web/lib/service/analytics' | import { trackCallback } from 'web/lib/service/analytics' | ||||||
| 
 | 
 | ||||||
| function getNavigation(username: string) { | function getNavigation() { | ||||||
|   return [ |   return [ | ||||||
|     { name: 'Home', href: '/home', icon: HomeIcon }, |     { name: 'Home', href: '/home', icon: HomeIcon }, | ||||||
|     { |     { | ||||||
|  | @ -50,9 +49,7 @@ export function BottomNavBar() { | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   const navigationOptions = |   const navigationOptions = | ||||||
|     user === null |     user === null ? signedOutNavigation : getNavigation() | ||||||
|       ? signedOutNavigation |  | ||||||
|       : getNavigation(user?.username || 'error') |  | ||||||
| 
 | 
 | ||||||
|   return ( |   return ( | ||||||
|     <nav className="fixed inset-x-0 bottom-0 z-20 flex justify-between border-t-2 bg-white text-xs text-gray-700 lg:hidden"> |     <nav className="fixed inset-x-0 bottom-0 z-20 flex justify-between border-t-2 bg-white text-xs text-gray-700 lg:hidden"> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user