diff --git a/docs/src/theme/CodeBlock/index.js b/docs/src/theme/CodeBlock/index.js index 49232075b03..4ef3806805a 100644 --- a/docs/src/theme/CodeBlock/index.js +++ b/docs/src/theme/CodeBlock/index.js @@ -19,9 +19,11 @@ function Imports({ imports }) { API Reference: - {imports.map(({ imported, source, docs }) => ( - {imported} - )).join(" | ")} + {imports.map(({ imported, source, docs }, index) => ( + + {imported}{index < imports.length - 1 ? ', ' : ''} + + ))} ); }