Skip to content

Commit 7a74282

Browse files
style(print): reformat print-related files
Refs: PS-275
1 parent 697addc commit 7a74282

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/components/form/partitions/DateRange.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ const DateRange: React.FC<Props> = ({
8383
};
8484

8585
const handleDateChange =
86-
(id: string, oldDate: Date | string | undefined) =>
87-
(value: Date) => {
86+
(id: string, oldDate: Date | string | undefined) => (value: Date) => {
8887
const oldDateObj = ensureDate(oldDate);
8988
onChange(id)(
9089
oldDateObj ? setHours(value, oldDateObj.getHours()) : addHours(value, 9)

src/components/form/partitions/__tests__/Location.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ describe('<Location />', () => {
6363
it('renders a printable label for delivery notes', () => {
6464
const { container } = renderComponent();
6565

66-
expect(
67-
container.querySelector('.print-only')
68-
).toHaveTextContent('Lisätietoja tarvikkeiden toimittamiseen (valinnainen)');
66+
expect(container.querySelector('.print-only')).toHaveTextContent(
67+
'Lisätietoja tarvikkeiden toimittamiseen (valinnainen)'
68+
);
6969
});
7070
});

src/components/pages/events/print.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@
197197
line-height: 1.1;
198198
}
199199

200-
.printable-area .date-range-printable .date-range-print-summary:not(:last-child) {
200+
.printable-area
201+
.date-range-printable
202+
.date-range-print-summary:not(:last-child) {
201203
margin-bottom: 0.2rem;
202204
}
203205

@@ -210,5 +212,4 @@
210212
display: inline;
211213
margin-left: 0.35rem;
212214
}
213-
214215
}

0 commit comments

Comments
 (0)