Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-gan committed May 4, 2024
1 parent c9e9470 commit 50df89a
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions docs/src/theme/CodeBlock/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,15 @@ function Imports({ imports }) {
borderBottomRightRadius: "var(--ifm-code-border-radius)",
}}
>
<h4 style={{ paddingLeft: "0.65rem", marginBottom: "0.45rem" }}>
<b style={{ paddingLeft: "0.65rem", marginBottom: "0.45rem" }}>
API Reference:
</h4>
<ul style={{ paddingBottom: "1rem" }}>
</b>
{imports.map(({ imported, source, docs }) => (
<li key={imported}>
<a href={docs}>
<span>{imported}</span>
</a>
</li>
<span key={imported}> | <a href={docs}>{imported}</a></span>
))}
</ul>
</div>
);
}
}c

export default function CodeBlockWrapper({ children, ...props }) {
// Initialize imports as an empty array
Expand Down

0 comments on commit 50df89a

Please sign in to comment.