diff --git a/samples/nextjs-template/src/components/AboutUs.tsx b/samples/nextjs-template/src/components/AboutUs.tsx index 6c1bdc9..650cc21 100644 --- a/samples/nextjs-template/src/components/AboutUs.tsx +++ b/samples/nextjs-template/src/components/AboutUs.tsx @@ -1,5 +1,6 @@ import { contentType, Infer } from '@optimizely/cms-sdk'; import { RichText, ElementProps } from '@optimizely/cms-sdk/react/richText'; +import { getPreviewUtils } from '@optimizely/cms-sdk/react/server'; import Image from 'next/image'; export const AboutUsContentType = contentType({ @@ -32,11 +33,12 @@ const customHeadingTwo = (props: ElementProps) => { }; export default function AboutUs({ opti }: AboutUsProps) { + const { src } = getPreviewUtils(opti); return (
{opti?.image?.url?.default && (
- aboutus_image +
)}

{opti.heading}