Skip to content

Commit 80f7b80

Browse files
authored
fix: hide route map info behind feature flag (#1329)
1 parent b345536 commit 80f7b80

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

web-app/src/app/screens/Feed/components/FeedSummary.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ import FeedAuthenticationSummaryInfo from './FeedAuthenticationSummaryInfo';
4646
import CommuteIcon from '@mui/icons-material/Commute';
4747
import { Link as RouterLink } from 'react-router-dom';
4848
import TravelExploreIcon from '@mui/icons-material/TravelExplore';
49+
import { useRemoteConfig } from '../../../context/RemoteConfigProvider';
4950

5051
export 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 */}

0 commit comments

Comments
 (0)