@@ -3,7 +3,7 @@ import { useRef } from 'react';
3
3
import { FormProvider , useForm } from 'react-hook-form' ;
4
4
import { useTranslation } from 'react-i18next' ;
5
5
import { z } from 'zod' ;
6
- import { Row } from '../../../layoutComponents' ;
6
+ import { Row , Visible } from '../../../layoutComponents' ;
7
7
import { SimpleButton } from '../../../uiComponents' ;
8
8
import { submitFormByRef } from '../../../utils' ;
9
9
import {
@@ -81,16 +81,18 @@ export const ChangeTimetablesValidityForm = ({
81
81
/>
82
82
</ FormRow >
83
83
</ FormColumn >
84
- < div className = "my-6 flex flex-row items-center space-x-6" >
85
- < i className = "icon-alert text-hsl-red" />
86
- < div className = "space-y-1 text-sm" >
87
- < p className = "font-bold" >
88
- { t ( 'changeTimetablesValidityModal.noticeChangesInRoutes' ) }
89
- </ p >
90
- < p > { affectedRouteLabels . join ( ', ' ) } </ p >
84
+ < Visible visible = { affectedRouteLabels . length > 1 } >
85
+ < div className = "my-6 flex flex-row items-center space-x-6" >
86
+ < i className = "icon-alert text-hsl-red" />
87
+ < div className = "space-y-1 text-sm" >
88
+ < p className = "font-bold" >
89
+ { t ( 'changeTimetablesValidityModal.noticeChangesInRoutes' ) }
90
+ </ p >
91
+ < p > { affectedRouteLabels . join ( ', ' ) } </ p >
92
+ </ div >
91
93
</ div >
92
- </ div >
93
- < Row className = "justify-end space-x-4" >
94
+ </ Visible >
95
+ < Row className = "mt-6 justify-end space-x-4" >
94
96
< SimpleButton onClick = { onCancel } inverted >
95
97
{ t ( 'cancel' ) }
96
98
</ SimpleButton >
0 commit comments