diff --git a/src/blocks/AboutProfile/Component.tsx b/src/blocks/AboutProfile/Component.tsx index 04244e6..1e2730a 100644 --- a/src/blocks/AboutProfile/Component.tsx +++ b/src/blocks/AboutProfile/Component.tsx @@ -1,5 +1,7 @@ +'use client' + import React from 'react' -import { ImageMedia } from '../ImageMedia' // Adjust this path to wherever your ImageMedia file lives +import { ImageMedia } from '@/components/ImageMedia' // Fixed path alias import type { Media as MediaType } from '@/payload-types' type ButtonGroup = { @@ -29,7 +31,6 @@ export function AboutProfileBlock({ }: AboutProfileBlockProps) { const isRight = imagePosition === 'right' - // Using your unified ImageMedia component handles S3 URLs, fallback widths, heights, and alt texts seamlessly const imageEl = image ? (
{hasPrimary && ( - )} {hasSecondary && ( -