diff --git a/front/src/modules/trainschedule/components/ManageTrainSchedule/ManageTrainScheduleMap/AddPathStepPopup.tsx b/front/src/modules/trainschedule/components/ManageTrainSchedule/ManageTrainScheduleMap/AddPathStepPopup.tsx index f1dfdd2be6f..422ba0cefc1 100644 --- a/front/src/modules/trainschedule/components/ManageTrainSchedule/ManageTrainScheduleMap/AddPathStepPopup.tsx +++ b/front/src/modules/trainschedule/components/ManageTrainSchedule/ManageTrainScheduleMap/AddPathStepPopup.tsx @@ -1,7 +1,6 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import React, { useEffect, useState } from 'react'; -import { Select } from '@osrd-project/ui-core'; import { point } from '@turf/helpers'; import { omit } from 'lodash'; import { useTranslation } from 'react-i18next'; @@ -24,6 +23,7 @@ import { type PathStep } from 'reducers/osrdconf/types'; import { getPointCoordinates } from 'utils/geometry'; import type { FeatureInfoClick } from '../types'; +import OperationalPointPopupDetails from './OperationalPointPopupDetails'; type AddPathStepPopupProps = { pathProperties?: ManageTrainSchedulePathProperties; @@ -177,34 +177,22 @@ const AddPathStepPopup = ({ closeOnClick={false} className="map-popup-click-select" > -
-
- {featureInfoClick.isOperationalPoint && - featureInfoClick.feature.properties.extensions_sncf_track_name} - {featureInfoClick.feature.properties.extensions_sncf_line_code} -
-
- {featureInfoClick.isOperationalPoint ? ( - <> - {featureInfoClick.feature.properties.extensions_identifier_name}
- {featureInfoClick.feature.properties.extensions_sncf_trigram}{' '} - {featureInfoClick.feature.properties.extensions_sncf_ch} - - ) : ( - featureInfoClick.feature.properties.extensions_sncf_line_name - )} -
-
- - {featureInfoClick.isOperationalPoint && clickedOp?.tracks && ( - option?.trackName || t('anyTrack')} + getOptionValue={(option) => option?.trackName || ''} + id="select-track" + onChange={(selectedOption) => setSelectedTrack(selectedOption)} + options={clickedOp.tracks} + value={selectedTrack} + /> + + ); +}; + +export default OperationalPointPopupDetails;