From 354b93fd28cb368413616e0c1ce00d8c122d7719 Mon Sep 17 00:00:00 2001 From: Mackie Date: Wed, 3 Jun 2026 13:40:24 +0800 Subject: [PATCH] media --- src/blocks/AboutProfile/Component.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 && ( -