|
1 |
| -import { ChevronLeft, Pencil } from '@osrd-project/ui-icons'; |
| 1 | +import { Blocked, ChevronLeft, Pencil } from '@osrd-project/ui-icons'; |
2 | 2 | import { useTranslation } from 'react-i18next';
|
3 | 3 |
|
4 | 4 | import InfraLoadingState from 'applications/operationalStudies/components/Scenario/InfraLoadingState';
|
@@ -68,23 +68,30 @@ const ScenarioDescription = ({
|
68 | 68 | </div>
|
69 | 69 |
|
70 | 70 | <div className="scenario-details-infra-name">
|
71 |
| - {t('infrastructure')} : {infra && <InfraLoadingState infra={infra} />} |
72 |
| - <span className="scenario-infra-name">{scenario.infra_name}</span> | ID{' '} |
| 71 | + {t('infrastructure')} : {infra && <InfraLoadingState infra={infra} />} |
| 72 | + <span className="scenario-infra-name">{scenario.infra_name}</span> | ID |
73 | 73 | {scenario.infra_id}
|
74 | 74 | </div>
|
75 | 75 | {infra &&
|
76 | 76 | infra.state === 'TRANSIENT_ERROR' &&
|
77 | 77 | (infraReloadCount <= 5 ? (
|
78 |
| - <div className="scenario-details-infra-error mt-1"> |
79 |
| - {t('errorMessages.unableToLoadInfra', { infraReloadCount })} |
| 78 | + <div className="scenario-details-infra-error"> |
| 79 | + <Blocked variant="fill" /> |
| 80 | + <span className="error-description"> |
| 81 | + {t('errorMessages.unableToLoadInfra', { infraReloadCount })} |
| 82 | + </span> |
80 | 83 | </div>
|
81 | 84 | ) : (
|
82 |
| - <div className="scenario-details-infra-error mt-1"> |
83 |
| - {t('errorMessages.softErrorInfra')} |
| 85 | + <div className="scenario-details-infra-error"> |
| 86 | + <Blocked variant="fill" /> |
| 87 | + <span className="error-description">{t('errorMessages.softErrorInfra')}</span> |
84 | 88 | </div>
|
85 | 89 | ))}
|
86 | 90 | {infra && infra.state === 'ERROR' && (
|
87 |
| - <div className="scenario-details-infra-error mt-1">{t('errorMessages.hardErrorInfra')}</div> |
| 91 | + <div className="scenario-details-infra-error"> |
| 92 | + <Blocked variant="fill" /> |
| 93 | + <span className="error-description">{t('errorMessages.hardErrorInfra')}</span> |
| 94 | + </div> |
88 | 95 | )}
|
89 | 96 | </div>
|
90 | 97 | );
|
|
0 commit comments