@@ -12,6 +12,7 @@ import {
1212 MenuItem ,
1313 Select ,
1414 useTheme ,
15+ Link ,
1516} from '@mui/material' ;
1617import MenuIcon from '@mui/icons-material/Menu' ;
1718import ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown' ;
@@ -34,6 +35,7 @@ import { useRemoteConfig } from '../context/RemoteConfigProvider';
3435import i18n from '../../i18n' ;
3536import { NestedMenuItem } from 'mui-nested-menu' ;
3637import DirectionsBusIcon from '@mui/icons-material/DirectionsBus' ;
38+ import DepartureBoardIcon from '@mui/icons-material/DepartureBoard' ;
3739import { fontFamily } from '../Theme' ;
3840import { defaultRemoteConfigValues } from '../interface/RemoteConfig' ;
3941import { animatedButtonStyling } from './Header.style' ;
@@ -235,25 +237,30 @@ export default function DrawerAppBar(): React.ReactElement {
235237 } }
236238 sx = { { display : 'flex' , gap : 1 } }
237239 >
238- < BikeScooterOutlined
239- fontSize = 'small'
240- sx = { { color : theme . palette . text . primary } }
241- />
240+ < BikeScooterOutlined fontSize = 'small' />
242241 { t ( 'gbfsValidator' ) }
243242 </ MenuItem >
244243 < MenuItem
245244 key = { 'gtfs-validator' }
246- onClick = { ( ) => {
247- handleMenuItemClick ( 'gtfs-validator' ) ;
248- } }
249- sx = { { display : 'flex' , gap : 1 } }
250- disabled = { true }
245+ component = { Link }
246+ href = 'https://gtfs-validator.mobilitydata.org/'
247+ target = '_blank'
248+ rel = 'noopener noreferrer'
251249 >
252- < DirectionsBusIcon
253- fontSize = 'small'
254- sx = { { color : theme . palette . text . primary } }
255- />
250+ < DirectionsBusIcon fontSize = 'small' sx = { { mr : 1 } } />
256251 { t ( 'gtfsValidator' ) }
252+ < OpenInNew fontSize = 'small' sx = { { ml : 0.5 } } />
253+ </ MenuItem >
254+ < MenuItem
255+ key = { 'gtfs-rt-validator' }
256+ component = { Link }
257+ href = 'https://github.com/MobilityData/gtfs-realtime-validator'
258+ target = '_blank'
259+ rel = 'noopener noreferrer'
260+ >
261+ < DepartureBoardIcon fontSize = 'small' sx = { { mr : 1 } } />
262+ { t ( 'gtfsRtValidator' ) }
263+ < OpenInNew fontSize = 'small' sx = { { ml : 0.5 } } />
257264 </ MenuItem >
258265 </ Menu >
259266 </ >
0 commit comments