@@ -10,7 +10,6 @@ import allowancesPic from 'assets/pictures/components/allowances.svg';
10
10
import pahtFindingPic from 'assets/pictures/components/pathfinding.svg' ;
11
11
import simulationSettings from 'assets/pictures/components/simulationSettings.svg' ;
12
12
import rollingStockPic from 'assets/pictures/components/train.svg' ;
13
- import type { Distribution } from 'common/api/osrdEditoastApi' ;
14
13
import { useOsrdConfSelectors } from 'common/osrdContext' ;
15
14
import { useStoreDataForSpeedLimitByTagSelector } from 'common/SpeedLimitByTagSelector/useStoreDataForSpeedLimitByTagSelector' ;
16
15
import Tabs from 'common/Tabs' ;
@@ -31,18 +30,16 @@ import { formatKmValue } from 'utils/strings';
31
30
32
31
type ManageTrainScheduleProps = {
33
32
trainIdToEdit ?: number ;
34
- constraintDistribution : Distribution ;
35
33
} ;
36
34
37
- const ManageTrainSchedule = ( {
38
- trainIdToEdit,
39
- constraintDistribution,
40
- } : ManageTrainScheduleProps ) => {
35
+ const ManageTrainSchedule = ( { trainIdToEdit } : ManageTrainScheduleProps ) => {
41
36
const { t } = useTranslation ( [ 'operationalStudies/manageTrainSchedule' ] ) ;
42
- const { getOrigin, getDestination, getPathSteps, getStartTime } = useOsrdConfSelectors ( ) ;
37
+ const { getOrigin, getDestination, getPathSteps, getConstraintDistribution, getStartTime } =
38
+ useOsrdConfSelectors ( ) ;
43
39
const origin = useSelector ( getOrigin ) ;
44
40
const destination = useSelector ( getDestination ) ;
45
41
const pathSteps = useSelector ( getPathSteps ) ;
42
+ const constraintDistribution = useSelector ( getConstraintDistribution ) ;
46
43
const startTime = useSelector ( getStartTime ) ;
47
44
const [ pathProperties , setPathProperties ] = useState < ManageTrainSchedulePathProperties > ( ) ;
48
45
0 commit comments