File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
web-app/src/app/screens/Feed/components Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ import FeedAuthenticationSummaryInfo from './FeedAuthenticationSummaryInfo';
4646import CommuteIcon from '@mui/icons-material/Commute' ;
4747import { Link as RouterLink } from 'react-router-dom' ;
4848import TravelExploreIcon from '@mui/icons-material/TravelExplore' ;
49+ import { useRemoteConfig } from '../../../context/RemoteConfigProvider' ;
4950
5051export interface FeedSummaryProps {
5152 feed : GTFSFeedType | GTFSRTFeedType | undefined ;
@@ -67,7 +68,7 @@ export default function FeedSummary({
6768 const providersToDisplay = showAllProviders
6869 ? sortedProviders
6970 : sortedProviders . slice ( 0 , 4 ) ;
70-
71+ const { config } = useRemoteConfig ( ) ;
7172 return (
7273 < ContentBox
7374 width = { width }
@@ -142,7 +143,7 @@ export default function FeedSummary({
142143 ) }
143144 </ Box >
144145 </ Box >
145- { feed ?. data_type === 'gtfs' && (
146+ { feed ?. data_type === 'gtfs' && config . enableGtfsVisualizationMap && (
146147 < Box sx = { boxElementStyle } >
147148 < StyledTitleContainer >
148149 { /* TODO: get back to this */ }
@@ -166,7 +167,7 @@ export default function FeedSummary({
166167 </ Typography >
167168 </ Box >
168169 ) }
169- { feed ?. data_type === 'gtfs' && (
170+ { feed ?. data_type === 'gtfs' && config . enableGtfsVisualizationMap && (
170171 < Box sx = { boxElementStyle } >
171172 < StyledTitleContainer >
172173 { /* TODO: get back to this */ }
You can’t perform that action at this time.
0 commit comments