fix(v2): pass all props to CodeBlock component (#5183)

This commit is contained in:
Alexey Pyltsyn 2021-07-16 15:55:19 +03:00 committed by GitHub
parent 54e4b02666
commit 44225a3df9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ const MDXComponents: MDXComponentsObject = {
<CodeBlock
{...((isValidElement(children)
? children?.props
: {children}) as Props)}
: {...props}) as Props)}
/>
);
},