diff --git a/beta/src/components/Layout/HomeContent.js b/beta/src/components/Layout/HomeContent.js index e3b447d61..8ebe0332b 100644 --- a/beta/src/components/Layout/HomeContent.js +++ b/beta/src/components/Layout/HomeContent.js @@ -406,7 +406,10 @@ function Example1() { Comment.js - +
{`function Comment({ comment }) { return (
@@ -490,7 +493,10 @@ function Example2() { CommentList.js
- +
{`function CommentList({ comments }) { let heading = 'Be the first to comment'; if (comments.length > 0) { @@ -620,7 +626,10 @@ function Example3() { PostPage.js
- +
{`async function PostPage({ slug }) { const post = await db.findPost({ slug }); return ( diff --git a/beta/src/components/MDX/CodeBlock/CodeBlock.tsx b/beta/src/components/MDX/CodeBlock/CodeBlock.tsx index d22697628..1784f0628 100644 --- a/beta/src/components/MDX/CodeBlock/CodeBlock.tsx +++ b/beta/src/components/MDX/CodeBlock/CodeBlock.tsx @@ -200,7 +200,7 @@ const CodeBlock = function CodeBlock({ 'rounded-2xl h-full w-full overflow-x-auto flex items-center bg-wash dark:bg-gray-95 shadow-lg', !noMargin && 'my-8', noShadow && - 'shadow-none my-0 rounded-2xl overflow-hidden px-0 sm:px-0 w-full flex bg-transparent' + 'shadow-none rounded-2xl overflow-hidden w-full flex bg-transparent' )}>