How to display data with Prismic Tab organization feature

Hello!

I am using Slice Machine and Next.Js.
While working there, I've organized the contents by using the Prismic Tab feature. Like below Image (Main and CTA)

When fetching the data, there are 2types of slices in data.

Currently, the first slices data reflects the site but the sencond slices2 doesn't reflect.

How can I handle this problem?

Hi Yurii,

Because you've created 2 Slice Zones in your document, you'll need to add 2 SliceZone components in your code and pass the Slice data as so:

<SliceZone slices={props.data.slices} resolver={resolver} />

<SliceZone slices={props.data.slices1} resolver={resolver} />

Thanks.

Thanks
:+1:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.