Skip to content

Commit

Permalink
fix: missing expert slot name in heading component
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonio committed Nov 7, 2023
1 parent 0e9893b commit 743e0cd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/components/src/components/heading/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,49 +61,49 @@ export class KolHeadingWc implements API {
return (
<h1 class="headline">
{headline}
<slot />
<slot name="expert" />
</h1>
);
case 2:
return (
<h2 class="headline">
{headline}
<slot />
<slot name="expert" />
</h2>
);
case 3:
return (
<h3 class="headline">
{headline}
<slot />
<slot name="expert" />
</h3>
);
case 4:
return (
<h4 class="headline">
{headline}
<slot />
<slot name="expert" />
</h4>
);
case 5:
return (
<h5 class="headline">
{headline}
<slot />
<slot name="expert" />
</h5>
);
case 6:
return (
<h6 class="headline">
{headline}
<slot />
<slot name="expert" />
</h6>
);
default:
return (
<strong class="headline">
{headline}
<slot />
<slot name="expert" />
</strong>
);
}
Expand Down

0 comments on commit 743e0cd

Please sign in to comment.