Skip to content

Commit

Permalink
fix: change Image classes to use clsx
Browse files Browse the repository at this point in the history
  • Loading branch information
martapanc committed Aug 31, 2023
1 parent 51d0f23 commit 369c2a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/organisms/home/Summary.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import clsx from 'clsx';
import Image from 'next/image';
import Link from 'next/link';
import React from 'react';
Expand All @@ -22,7 +23,7 @@ function buildLink(link: LinkProps) {
return (
<Link href={link.href} target='_blank' rel='noopener noreferrer'>
<Image
className={link.classes}
className={clsx(link.classes)}
src={link.image}
alt={link.alt}
width={link.width}
Expand Down

0 comments on commit 369c2a3

Please sign in to comment.