Skip to content

Commit

Permalink
fix: legacy image for employees in case
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelbr committed Dec 12, 2024
1 parent aef68c0 commit 87fc841
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Image from "next/image";
import { useTranslations } from "next-intl";

import { SanityImage } from "src/components/image/SanityImage";
import Text from "src/components/text/Text";
import formatPhoneNumber from "src/components/utils/formatPhoneNumber";
import { ChewbaccaEmployee } from "src/types/employees";
Expand All @@ -26,11 +26,11 @@ export default function CustomerCaseEmployeeCard({
employee.email && (
<div key={employee.email} className={styles.employee}>
<div className={styles.employeeImage}>
<Image
src={employee.imageUrl ?? employee.imageThumbUrl}
alt={employee.name}
objectFit="cover"
fill={true}
<SanityImage
image={{
src: { src: employee.imageUrl ?? employee.imageThumbUrl },
alt: employee.name,
}}
/>
</div>
<div className={styles.employeeInfo}>
Expand Down

0 comments on commit 87fc841

Please sign in to comment.