@@ -10,7 +10,7 @@ import { type SubmitHandler, Controller, useForm } from 'react-hook-form';
1010import { type AuthTypes , type FeedSubmissionFormFormInput } from '.' ;
1111import { useEffect } from 'react' ;
1212import { useTranslation } from 'react-i18next' ;
13- import { isValidFeedLink , checkFeedUrlExistsInCsv } from '../../../services/feeds/utils' ;
13+ import { isValidFeedLink , checkFeedUrlExistsInCsv , } from '../../../services/feeds/utils' ;
1414
1515export interface FeedSubmissionFormInputSecondStepRT {
1616 tripUpdates : string ;
@@ -32,7 +32,7 @@ interface FormSecondStepRTProps {
3232 handleBack : ( formData : Partial < FeedSubmissionFormFormInput > ) => void ;
3333}
3434
35- const realtimeFeedURLPrefix = " https://mobilitydatabase.org/feeds/gtfs_rt/" ;
35+ const realtimeFeedURLPrefix = ' https://mobilitydatabase.org/feeds/gtfs_rt/' ;
3636
3737export default function FormSecondStepRT ( {
3838 initialValues,
@@ -125,10 +125,13 @@ export default function FormSecondStepRT({
125125 errors . serviceAlerts ?. message ?. startsWith ( 'Feed Exists:' ) ? (
126126 < span >
127127 { t ( 'form.feedAlreadyExists' ) }
128- < a href =
129- { errors . serviceAlerts . message . replace ( 'Feed Exists:' , `${ realtimeFeedURLPrefix } ` ) } target = "_blank" rel = "noopener noreferrer" >
130- { t ( errors . serviceAlerts . message . replace ( 'Feed Exists:' , '' ) ) }
131- </ a >
128+ < a
129+ href = { errors . serviceAlerts . message . replace ( 'Feed Exists:' , `${ realtimeFeedURLPrefix } ` ) }
130+ target = "_blank"
131+ rel = "noopener noreferrer"
132+ >
133+ { t ( errors . serviceAlerts . message . replace ( 'Feed Exists:' , '' ) ) }
134+ </ a >
132135 </ span >
133136 ) : (
134137 errors . serviceAlerts ?. message ?? ''
@@ -202,10 +205,13 @@ export default function FormSecondStepRT({
202205 errors . tripUpdates ?. message ?. startsWith ( 'Feed Exists:' ) ? (
203206 < span >
204207 { t ( 'form.feedAlreadyExists' ) }
205- < a href =
206- { errors . tripUpdates . message . replace ( 'Feed Exists:' , `${ realtimeFeedURLPrefix } ` ) } target = "_blank" rel = "noopener noreferrer" >
207- { t ( errors . tripUpdates . message . replace ( 'Feed Exists:' , '' ) ) }
208- </ a >
208+ < a
209+ href = { errors . tripUpdates . message . replace ( 'Feed Exists:' , `${ realtimeFeedURLPrefix } ` ) }
210+ target = "_blank"
211+ rel = "noopener noreferrer"
212+ >
213+ { t ( errors . tripUpdates . message . replace ( 'Feed Exists:' , '' ) ) }
214+ </ a >
209215 </ span >
210216 ) : (
211217 errors . tripUpdates ?. message ?? ''
@@ -279,10 +285,13 @@ export default function FormSecondStepRT({
279285 errors . vehiclePositions ?. message ?. startsWith ( 'Feed Exists:' ) ? (
280286 < span >
281287 { t ( 'form.feedAlreadyExists' ) }
282- < a href =
283- { errors . vehiclePositions . message . replace ( 'Feed Exists:' , `${ realtimeFeedURLPrefix } ` ) } target = "_blank" rel = "noopener noreferrer" >
284- { t ( errors . vehiclePositions . message . replace ( 'Feed Exists:' , '' ) ) }
285- </ a >
288+ < a
289+ href = { errors . vehiclePositions . message . replace ( 'Feed Exists:' , `${ realtimeFeedURLPrefix } ` ) }
290+ target = "_blank"
291+ rel = "noopener noreferrer"
292+ >
293+ { t ( errors . vehiclePositions . message . replace ( 'Feed Exists:' , '' ) ) }
294+ </ a >
286295 </ span >
287296 ) : (
288297 errors . vehiclePositions ?. message ?? ''
0 commit comments