Skip to content

Commit b30feff

Browse files
authored
Merge pull request #1859 from HSLdevcom/DT-2170
DT-2170: Fixed missing date and print actions
2 parents 4bbf5b4 + 9812530 commit b30feff

File tree

1 file changed

+17
-24
lines changed

1 file changed

+17
-24
lines changed

app/component/StopPageActionBar.js

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,25 @@ const printStop = e => {
1010
window.print();
1111
};
1212

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
2628
/>
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>
3629
</div>
37-
)) ||
38-
null;
30+
</div>
31+
);
3932

4033
StopPageActionBar.displayName = 'StopPageActionBar';
4134

0 commit comments

Comments
 (0)