Skip to content

Commit

Permalink
Use StyleKw
Browse files Browse the repository at this point in the history
  • Loading branch information
KnorpelSenf committed Nov 21, 2023
1 parent 737c2dd commit 951b604
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion site/api/components/Class/Constructors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { CodeBlock } from "../CodeBlock.tsx";
import { Loc } from "../Loc.tsx";
import { P } from "../P.tsx";
import { Params } from "../TsType.tsx";
import { StyleKw } from "../styles.tsx";
import { LinkGetter } from "../types.ts";

export function Constructors({
Expand All @@ -18,7 +19,7 @@ export function Constructors({
return ctors.map((v) => (
<>
<CodeBlock>
{v.accessibility ? `${v.accessibility} ` : undefined}
{v.accessibility ? <StyleKw>`${v.accessibility} `</StyleKw> : undefined}
<span style="color: rgb(98, 232, 132);">{v.name}</span>(
<Params getLink={getLink}>{v.params}</Params>);
</CodeBlock>
Expand Down

0 comments on commit 951b604

Please sign in to comment.