Skip to content

Commit

Permalink
fix buidl errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dogfrogfog committed Dec 17, 2024
1 parent c0405dd commit 921f3ea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
5 changes: 3 additions & 2 deletions apps/storyblok/src/components/Page/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { StoryblokServerComponent, StoryblokStory } from "@storyblok/react/rsc";
import { StoryblokComponent } from "@storyblok/react";
import { StoryblokStory } from "@storyblok/react/rsc";

import { cn, CookieBanner } from "@shared/ui";

Expand All @@ -18,7 +19,7 @@ export default function PageContainer({ blok }: IPageContainerProps) {
<div className={cn("bg-bgColor", theme)}>
{globalHeader && <StoryblokStory story={globalHeader} />}
{sections.map((s) => (
<StoryblokServerComponent blok={s} key={s._uid} />
<StoryblokComponent blok={s} key={s._uid} />
))}
{globalFooter && <StoryblokStory story={globalFooter} />}
{showCookieBanner && <CookieBanner />}
Expand Down
20 changes: 9 additions & 11 deletions apps/storyblok/src/lib/renderRichText.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import type { ImageStoryblok } from "@/generated/extracted-types";
import {
StoryblokServerComponent,
type ISbRichtext,
} from "@storyblok/react/rsc";
import { StoryblokComponent } from "@storyblok/react";
import { type ISbRichtext } from "@storyblok/react/rsc";
import { render } from "storyblok-rich-text-react-renderer";

import { Image } from "@shared/ui";
Expand Down Expand Up @@ -33,7 +31,7 @@ export default function renderRichText(data: ISbRichtext) {

cardsGrid: (props) => {
return (
<StoryblokServerComponent
<StoryblokComponent
blok={{
...props,
component: "cardsGrid",
Expand All @@ -45,7 +43,7 @@ export default function renderRichText(data: ISbRichtext) {

linksList: (props) => {
return (
<StoryblokServerComponent
<StoryblokComponent
blok={{
...props,
component: "linksList",
Expand All @@ -57,7 +55,7 @@ export default function renderRichText(data: ISbRichtext) {

logos: (props) => {
return (
<StoryblokServerComponent
<StoryblokComponent
blok={{
...props,
component: "logos",
Expand All @@ -69,7 +67,7 @@ export default function renderRichText(data: ISbRichtext) {

stepGuide: (props) => {
return (
<StoryblokServerComponent
<StoryblokComponent
blok={{
...props,
component: "stepGuide",
Expand All @@ -81,23 +79,23 @@ export default function renderRichText(data: ISbRichtext) {

threeDElement: (props) => {
return (
<StoryblokServerComponent
<StoryblokComponent
blok={{ ...props, component: "threeDElement", paddingX: "none" }}
/>
);
},

pricingTable: (props) => {
return (
<StoryblokServerComponent
<StoryblokComponent
blok={{ ...props, component: "pricingTable", paddingX: "none" }}
/>
);
},

carousel: (props) => {
return (
<StoryblokServerComponent
<StoryblokComponent
blok={{ ...props, component: "carousel", paddingX: "none" }}
/>
);
Expand Down

0 comments on commit 921f3ea

Please sign in to comment.