From abca1f449526827f908d2bdaf3f5e0f32542e2cc Mon Sep 17 00:00:00 2001 From: dan Date: Tue, 1 Feb 2022 13:19:17 +0000 Subject: [PATCH] Use MDXContext directly (#4267) * Use MDXContext directly * yolo --- beta/src/components/Layout/LayoutPost.tsx | 7 +++++-- beta/src/components/Layout/MarkdownPage.tsx | 7 ++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/beta/src/components/Layout/LayoutPost.tsx b/beta/src/components/Layout/LayoutPost.tsx index dd1b38049..789c75437 100644 --- a/beta/src/components/Layout/LayoutPost.tsx +++ b/beta/src/components/Layout/LayoutPost.tsx @@ -2,7 +2,8 @@ * Copyright (c) Facebook, Inc. and its affiliates. */ -import {MDXProvider} from '@mdx-js/react'; +// @ts-ignore +import {MDXContext} from '@mdx-js/react'; import recentPostsRouteTree from 'blogIndexRecent.json'; import {DocsPageFooter} from 'components/DocsFooter'; import {ExternalLink} from 'components/ExternalLink'; @@ -87,7 +88,9 @@ function LayoutPost({meta, children}: LayoutPostProps) {

- {children} + + {children} +
- + {finalChildren} - +