Skip to content

Commit

Permalink
dogfood of swizzle CodeBlock + wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Dec 3, 2021
1 parent c8e994c commit 0040819
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions website/src/theme/CodeBlock/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import type {Props} from '@theme/CodeBlock';
import CodeBlock from '@theme-original/CodeBlock';

// This component does nothing on purpose
// Dogfood: wrapping a theme component already enhanced by another theme
// See https://github.com/facebook/docusaurus/pull/5983
export default function CodeBlockWrapper(props: Props): JSX.Element {
return <CodeBlock {...props} />;
}

0 comments on commit 0040819

Please sign in to comment.