Skip to content

Commit

Permalink
Use clsx in recommendedMaterial as part of css conditional rendering
Browse files Browse the repository at this point in the history
DDFFORM-490
  • Loading branch information
LasseStaus committed Apr 18, 2024
1 parent 6720031 commit 0163680
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import clsx from "clsx";
import { ButtonFavourite } from "../Buttons/button-favourite/ButtonFavourite";
import Cover from "../cover/Cover";

Expand All @@ -22,9 +23,9 @@ export const RecommendedMaterial: React.FC<RecommendedMaterialProps> = ({
}) => {
return (
<div
className={`recommended-material ${
partOfGrid && "recommended-material--in-grid "
}`}
className={clsx("recommended-material", {
"recommended-material--in-grid": partOfGrid,
})}
>
<div className="recommended-material__icon">
<ButtonFavourite fill={favoriteFill} />
Expand Down

0 comments on commit 0163680

Please sign in to comment.