Skip to content

Commit b8a15de

Browse files
authored
chore: fix custom decorator story (#1333)
1 parent d77f5cb commit b8a15de

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

src/containers/PageConstructor/__stories__/components/CustomCard/CustomCard.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const CustomCard = ({
6969
onClick={(e) => e.stopPropagation()}
7070
>
7171
<YFMWrapper
72-
className={b('card-body-link-code')}
72+
contentClassName={b('card-body-link-code')}
7373
content={`<code>${content}</code>`}
7474
/>
7575
</Link>
@@ -91,8 +91,9 @@ export const CustomCard = ({
9191
<CardBase.Content>
9292
{description && (
9393
<YFMWrapper
94-
className={b('card-body-description')}
94+
contentClassName={b('card-body-description')}
9595
content={yfmTransform(description)}
96+
tagName="div"
9697
/>
9798
)}
9899
</CardBase.Content>

src/containers/PageConstructor/__stories__/components/CustomDecorator/CustomDecorator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const customDecorator: BlockDecorator = ({type, children}) => {
5555
<YFMWrapper content={yfmTransform(CUSTOM_DECORATOR_DESCRIPTION)} />
5656
<Link href="https://github.com/gravity-ui/page-constructor/blob/main/src/containers/PageConstructor/__stories__/components/CustomBlocksTemplate.tsx">
5757
<YFMWrapper
58-
className={b('code')}
58+
contentClassName={b('code')}
5959
content={`<code>${CUSTOM_DECORATOR_CODE}</code>`}
6060
/>
6161
</Link>

src/containers/PageConstructor/__stories__/components/CustomHeader/CustomHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const CustomHeader = ({url, description, ...props}: CustomHeaderProps) =>
4343
>
4444
<Wrapper className={b('code')} href={url ?? ''}>
4545
<YFMWrapper
46-
className={b('code-yfm')}
46+
contentClassName={b('code-yfm')}
4747
content={`<code>${CUSTOM_HEADER_CODE}</code>`}
4848
/>
4949
</Wrapper>

src/containers/PageConstructor/__stories__/components/CustomNavigationItem/CustomNavigationItem.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ export const CustomNavigationItem = ({url, title, description}: CustomNavigation
4343
<div className={b('popover-content')}>
4444
{description && (
4545
<YFMWrapper
46-
className={b('popover-content-description')}
46+
contentClassName={b('popover-content-description')}
4747
content={yfmTransform(description)}
48+
tagName="div"
4849
/>
4950
)}
5051
<Wrapper className={b('popover-content-code')} href={url ?? ''}>

0 commit comments

Comments
 (0)