Skip to content

Commit 58247a3

Browse files
author
Sine Jespersen
committed
CMN-293: use clsx
1 parent 33383b8 commit 58247a3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/stories/Library/Lists/list-reservation/ListReservationsAndLoans.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { clsx } from "clsx";
12
import { Counter, CounterProps } from "../../counter/Counter";
23
import { StatusLabel, StatusLabelProps } from "../../status-label/StatusLabel";
34
import { Cover } from "../../cover/Cover";
@@ -48,12 +49,12 @@ export const ListReservationsAndLoans = (
4849
</div>
4950
<button
5051
type="button"
52+
className={clsx(
53+
"list-reservation__note-desktop",
54+
cover.noteAsWarning && "color-signal-alert",
55+
!cover.noteAsWarning && "color-secondary-gray"
56+
)}
5157
aria-label="note about material"
52-
className={`list-reservation__note-desktop ${
53-
cover.noteAsWarning
54-
? "color-signal-alert"
55-
: "color-secondary-gray"
56-
}`}
5758
>
5859
{cover.noteLabel}
5960
</button>

0 commit comments

Comments
 (0)