Skip to content

Commit

Permalink
remove scenario details div while timetable is collapsed
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainValls committed Dec 3, 2024
1 parent 9f3365d commit a14e100
Showing 1 changed file with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { useState, useEffect, useCallback } from 'react';
import { ChevronRight } from '@osrd-project/ui-icons';
import cx from 'classnames';
import { useTranslation } from 'react-i18next';
import { GiElectric } from 'react-icons/gi';

import handleOperation from 'applications/operationalStudies/components/MacroEditor/ngeToOsrd';
import importTimetableToNGE from 'applications/operationalStudies/components/MacroEditor/osrdToNge';
Expand All @@ -15,7 +14,6 @@ import useScenarioData from 'applications/operationalStudies/hooks/useScenarioDa
import ImportTrainSchedule from 'applications/operationalStudies/views/ImportTrainSchedule';
import ManageTrainSchedule from 'applications/operationalStudies/views/ManageTrainSchedule';
import SimulationResults from 'applications/operationalStudies/views/SimulationResults';
import infraLogo from 'assets/pictures/components/tracks.svg';
import type {
InfraWithState,
ScenarioResponse,
Expand Down Expand Up @@ -200,27 +198,6 @@ const ScenarioContent = ({
</div>
)}
<div className="scenario-results">
{collapsedTimetable && (
<>
<div
className={cx('scenario-timetable-collapsed', { 'd-none': collapsedTimetable })}
>
<div className="lead ml-2">{scenario.name}</div>
<div className="d-flex align-items-center ml-auto">
<img src={infraLogo} alt="Infra logo" className="infra-logo mr-2" />
{scenario.infra_name}
</div>
<div className="d-flex align-items-center ml-4">
<span className="mr-1">
<GiElectric />
</span>
{scenario.electrical_profile_set_id
? scenario.electrical_profile_set_id
: t('noElectricalProfileSet')}
</div>
</div>
</>
)}
{isMacro ? (
<div className={cx(collapsedTimetable ? 'macro-container' : 'h-100 p-1')}>
<NGE dto={ngeDto} onOperation={handleNGEOperation} />
Expand Down

0 comments on commit a14e100

Please sign in to comment.