mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-31 07:18:59 +02:00
refactor: prepare types for React 19 (#10746)
This commit is contained in:
parent
e9f0641620
commit
f9825af43e
296 changed files with 1105 additions and 915 deletions
|
@ -5,13 +5,13 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import React, {type ReactNode} from 'react';
|
||||
import CodeBlock from '@theme-original/CodeBlock';
|
||||
import type {Props} from '@theme/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 {
|
||||
export default function CodeBlockWrapper(props: Props): ReactNode {
|
||||
return <CodeBlock {...props} />;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue