Skip to content

Commit

Permalink
typescript fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshack committed Oct 17, 2024
1 parent 852be61 commit 2977960
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const MapSite: NextPage = (mapData: any) => {
const [marketFilterAction, setMarketFilterAction] = useState<boolean>(false)
const [marketFilterTrain, setMarketFilterTrain] = useState<boolean>(false)

const [navView, setNavView] = useState<'filter' | 'info'>('filter')
const [navView, setNavView] = useState<'filter' | 'info' | 'search'>('filter')
const [sidebarMenuOpen, setSidebarMenuOpen] = useState<boolean>(false)
const [sidebarInfoOpen, setSidebarInfoOpen] = useState<boolean>(false)
const [mobileHeight, setMobileHeight] = useState<'half' | 'full'>('half')
Expand Down Expand Up @@ -167,8 +167,6 @@ const MapSite: NextPage = (mapData: any) => {
setSidebarInfoOpen(false)
}, [navView])

const [showMapLayerToilets, setShowMapLayerToilets] = useState(true)

return (
<>
<Head />
Expand Down
2 changes: 1 addition & 1 deletion src/components/Sidebar/SidebarNav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useHasMobileSize } from '@lib/hooks/useHasMobileSize'
export interface SidebarNavType {
navViews: any
setNavView: (view: 'info' | 'filter') => void
navView?: 'info' | 'filter'
navView?: 'info' | 'filter' | 'search'
sidebarMenuOpen: boolean
setSidebarMenuOpen: (open: boolean) => void
setModalOpen: (open: boolean) => void
Expand Down

0 comments on commit 2977960

Please sign in to comment.