Skip to content

Commit

Permalink
Updating prep components
Browse files Browse the repository at this point in the history
  • Loading branch information
devinmatte committed Dec 11, 2023
1 parent a416963 commit 32d8203
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/components/nav/CommuterRailDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const CommuterRailDropdown: React.FC<CommuterRailDropdownProps> = ({ clos
<CommuterRailRouteSelection />
<div
className={
'flex flex-col gap-[2px] rounded-b-md border border-t-0 border-mbta-bus border-opacity-50 bg-neutral-800 px-1 py-[4px]'
'flex flex-col gap-[2px] rounded-b-md border border-t-0 border-mbta-commuterRail border-opacity-50 bg-neutral-800 px-1 py-[4px]'
}
role={'navigation'}
>
Expand Down
5 changes: 2 additions & 3 deletions common/components/nav/CommuterRailSection.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
import React from 'react';
import { useDelimitatedRoute } from '../../utils/router';
import { BusDropdown } from './BusDropdown';
import { MenuDropdown } from './MenuDropdown';
import { CommuterRailDropdown } from './CommuterRailDropdown';

interface CommuterRailSectionProps {
close?: () => void;
}

// TODO: Add commuter rail dropdown to sidebar
export const CommuterRailSection: React.FC<CommuterRailSectionProps> = ({ close }) => {
const route = useDelimitatedRoute();
return (
<div className="w-full gap-y-2">
<MenuDropdown line="line-commuter-rail" route={route}>
<BusDropdown close={close} />
<CommuterRailDropdown close={close} />
</MenuDropdown>
</div>
);
Expand Down

0 comments on commit 32d8203

Please sign in to comment.