@@ -7,10 +7,12 @@ import { fontFamily } from '../Theme';
77import Image from 'next/image' ;
88import { useTranslations } from 'next-intl' ;
99import { FooterLink , FooterColumnTitle } from './FooterElements' ;
10+ import { useRemoteConfig } from '../context/RemoteConfigProvider' ;
1011
1112const Footer : React . FC = ( ) => {
1213 const theme = useTheme ( ) ;
1314 const t = useTranslations ( 'footer' ) ;
15+ const { config } = useRemoteConfig ( ) ;
1416 const FOOTER_COLUMN_WIDTH = '185px' ;
1517 const SlackSvg = (
1618 < svg
@@ -143,30 +145,28 @@ const Footer: React.FC = () => {
143145 </ Box >
144146
145147 { /* Validators column */ }
146- < Box sx = { { width : FOOTER_COLUMN_WIDTH } } >
147- < FooterColumnTitle > { t ( 'columns.validators' ) } </ FooterColumnTitle >
148- < FooterLink
149- href = 'https://gtfs-validator.mobilitydata.org/'
150- external
151- >
152- { t ( 'links.gtfsValidator' ) } { ' ' }
153- < OpenInNew sx = { { fontSize : '1rem' , verticalAlign : 'middle' } } />
154- </ FooterLink >
155- < FooterLink
156- href = 'https://github.com/MobilityData/gtfs-realtime-validator'
157- external
158- >
159- { t ( 'links.gtfsRtValidator' ) } { ' ' }
160- < OpenInNew sx = { { fontSize : '1rem' , verticalAlign : 'middle' } } />
161- </ FooterLink >
162- < FooterLink
163- href = 'https://gbfs-validator.mobilitydata.org/'
164- external
165- >
166- { t ( 'links.gbfsValidator' ) } { ' ' }
167- < OpenInNew sx = { { fontSize : '1rem' , verticalAlign : 'middle' } } />
168- </ FooterLink >
169- </ Box >
148+ { config . gbfsValidator && (
149+ < Box sx = { { width : FOOTER_COLUMN_WIDTH } } >
150+ < FooterColumnTitle > { t ( 'columns.validators' ) } </ FooterColumnTitle >
151+ < FooterLink
152+ href = 'https://gtfs-validator.mobilitydata.org/'
153+ external
154+ >
155+ { t ( 'links.gtfsValidator' ) } { ' ' }
156+ < OpenInNew sx = { { fontSize : '1rem' , verticalAlign : 'middle' } } />
157+ </ FooterLink >
158+ < FooterLink
159+ href = 'https://github.com/MobilityData/gtfs-realtime-validator'
160+ external
161+ >
162+ { t ( 'links.gtfsRtValidator' ) } { ' ' }
163+ < OpenInNew sx = { { fontSize : '1rem' , verticalAlign : 'middle' } } />
164+ </ FooterLink >
165+ < FooterLink href = '/gbfs-validator' >
166+ { t ( 'links.gbfsValidator' ) } { ' ' }
167+ </ FooterLink >
168+ </ Box >
169+ ) }
170170
171171 { /* Company column */ }
172172 < Box sx = { { width : FOOTER_COLUMN_WIDTH } } >
0 commit comments