Skip to content

Commit 6dc4dfb

Browse files
committed
front: rename stdcmInputVia into stopDurationInput
Signed-off-by: Clara Ni <[email protected]>
1 parent 4aeb5fd commit 6dc4dfb

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

front/src/applications/stdcm/components/StdcmForm/StdcmVias.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import { useAppDispatch } from 'store';
1313

1414
import StdcmCard from './StdcmCard';
1515
import StdcmDefaultCard from './StdcmDefaultCard';
16-
import StdcmInputVia from './StdcmInputVia';
1716
import StdcmOperationalPoint from './StdcmOperationalPoint';
1817
import StdcmStopType from './StdcmStopType';
18+
import StopDurationInput from './StopDurationInput';
1919
import { StdcmStopTypes } from '../../types';
2020
import type { StdcmConfigCardProps } from '../../types';
2121

@@ -147,7 +147,7 @@ const StdcmVias = ({ disabled = false }: StdcmConfigCardProps) => {
147147
stopTypes={pathStep.stopType}
148148
updatePathStepStopType={(newStopType) => updateStopType(newStopType, pathStep)}
149149
/>
150-
<StdcmInputVia
150+
<StopDurationInput
151151
stopType={pathStep.stopType}
152152
stopDuration={pathStep.stopFor}
153153
updatePathStepStopTime={(e) => updateStopDuration(e, pathStep)}

front/src/applications/stdcm/components/StdcmForm/StdcmInputVia.tsx front/src/applications/stdcm/components/StdcmForm/StopDurationInput.tsx

+7-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ import { useTranslation } from 'react-i18next';
66

77
import { StdcmStopTypes } from '../../types';
88

9-
type StdcmInputViaProps = {
9+
type StopDurationInputProps = {
1010
stopType: StdcmStopTypes;
1111
stopDuration?: number;
1212
updatePathStepStopTime: (stopTime: string) => void;
1313
};
1414

15-
const StdcmInputVia = ({ stopType, stopDuration, updatePathStepStopTime }: StdcmInputViaProps) => {
15+
const StopDurationInput = ({
16+
stopType,
17+
stopDuration,
18+
updatePathStepStopTime,
19+
}: StopDurationInputProps) => {
1620
const { t } = useTranslation('stdcm');
1721

1822
const [pathStepStopTime, setPathStepStopTime] = useState('');
@@ -57,4 +61,4 @@ const StdcmInputVia = ({ stopType, stopDuration, updatePathStepStopTime }: Stdcm
5761
);
5862
};
5963

60-
export default StdcmInputVia;
64+
export default StopDurationInput;

0 commit comments

Comments
 (0)