From 91527db90707b7c375c431d330b8c9ed00bbb962 Mon Sep 17 00:00:00 2001 From: Devin Matte Date: Sat, 18 Jan 2025 16:08:20 -0500 Subject: [PATCH] Filter sidebar properly --- common/components/nav/SubwayDropdown.tsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/common/components/nav/SubwayDropdown.tsx b/common/components/nav/SubwayDropdown.tsx index b628dd20..f7d08118 100644 --- a/common/components/nav/SubwayDropdown.tsx +++ b/common/components/nav/SubwayDropdown.tsx @@ -1,7 +1,7 @@ import classNames from 'classnames'; import React from 'react'; import { SidebarTabs } from '../../../modules/navigation/SidebarTabs'; -import { OVERVIEW_PAGE, LINE_PAGES, TRIP_PAGES, ALL_PAGES } from '../../constants/pages'; +import { OVERVIEW_PAGE, LINE_PAGES, TRIP_PAGES } from '../../constants/pages'; import { lineColorBorder } from '../../styles/general'; import type { Line } from '../../types/lines'; @@ -21,14 +21,7 @@ export const SubwayDropdown: React.FC = ({ line, close }) = >
- cur !== ALL_PAGES.slowzones) - : LINE_PAGES - } - close={close} - /> + cur.lines.includes(line))} close={close} />