File tree Expand file tree Collapse file tree 1 file changed +17
-24
lines changed Expand file tree Collapse file tree 1 file changed +17
-24
lines changed Original file line number Diff line number Diff line change @@ -10,32 +10,25 @@ const printStop = e => {
10
10
window . print ( ) ;
11
11
} ;
12
12
13
- const StopPageActionBar = ( {
14
- printUrl,
15
- startDate,
16
- selectedDate,
17
- onDateChange,
18
- } ) =>
19
- ( printUrl && (
20
- < div id = "stop-page-action-bar" >
21
- < DateSelect
22
- startDate = { startDate }
23
- selectedDate = { selectedDate }
24
- dateFormat = { DATE_FORMAT }
25
- onDateChange = { onDateChange }
13
+ const StopPageActionBar = ( { startDate, selectedDate, onDateChange } ) => (
14
+ < div id = "stop-page-action-bar" >
15
+ < DateSelect
16
+ startDate = { startDate }
17
+ selectedDate = { selectedDate }
18
+ dateFormat = { DATE_FORMAT }
19
+ onDateChange = { onDateChange }
20
+ />
21
+ < div className = "print-button-container" >
22
+ < SecondaryButton
23
+ ariaLabel = "print"
24
+ buttonName = "print"
25
+ buttonClickAction = { e => printStop ( e ) }
26
+ buttonIcon = "icon-icon_print"
27
+ smallSize
26
28
/>
27
- < div className = "print-button-container" >
28
- < SecondaryButton
29
- ariaLabel = "print"
30
- buttonName = "print"
31
- buttonClickAction = { e => printStop ( e ) }
32
- buttonIcon = "icon-icon_print"
33
- smallSize
34
- />
35
- </ div >
36
29
</ div >
37
- ) ) ||
38
- null ;
30
+ </ div >
31
+ ) ;
39
32
40
33
StopPageActionBar . displayName = 'StopPageActionBar' ;
41
34
You can’t perform that action at this time.
0 commit comments