Skip to content

Commit

Permalink
feat(Slices Templates): Improve template component and mock
Browse files Browse the repository at this point in the history
  • Loading branch information
xrutayisire committed Sep 6, 2023
1 parent 1cd9113 commit 4274216
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const mocks: SharedSliceContent[] = [
},
},
credits: null,
alt: null,
alt: "Example Image",
__TYPE__: "ImageContent",
thumbnails: {},
},
Expand Down Expand Up @@ -102,7 +102,7 @@ export const mocks: SharedSliceContent[] = [
},
},
credits: null,
alt: null,
alt: "Example Image",
__TYPE__: "ImageContent",
thumbnails: {},
},
Expand Down Expand Up @@ -190,6 +190,8 @@ export const createComponentContents = (
<div className="es-bounded__content es-call-to-action__content">
{isFilled.image(slice.primary.image) && (
<PrismicNextImage
width="auto"
height="auto"
className="es-call-to-action__image"
field={slice.primary.image}
/>
Expand Down Expand Up @@ -329,6 +331,8 @@ export const createComponentContents = (
<div className="es-bounded__content es-call-to-action__content">
{isFilled.image(slice.primary.image) && (
<PrismicNextImage
width="auto"
height="auto"
className="es-call-to-action__image"
field={slice.primary.image}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export const sliceTemplatesComingSoon: ComponentUI[] = [
href: "",
pathToSlice: "",
model: {
id: "video_highlight",
name: "VideoHighlight",
id: "video_highlights",
name: "VideoHighlights",
type: "SharedSlice",
variations: [
{
Expand All @@ -82,7 +82,7 @@ export const sliceTemplatesComingSoon: ComponentUI[] = [
},
screenshots: {
default: {
url: "/videoHighlight.png",
url: "/videoHighlights.png",
},
},
},
Expand Down

0 comments on commit 4274216

Please sign in to comment.