mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-01 16:00:29 +02:00
fix(core): do not apply theme-init alias to user component (#5983)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
b366ba5603
commit
fcaa94695d
11 changed files with 76 additions and 22 deletions
17
website/src/theme/CodeBlock/index.tsx
Normal file
17
website/src/theme/CodeBlock/index.tsx
Normal file
|
@ -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} />;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue