mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-30 10:48:05 +02:00
quick fix for React 19 ideal image default props
This commit is contained in:
parent
ca7ef20d06
commit
c2c20de559
1 changed files with 4 additions and 0 deletions
|
@ -93,6 +93,10 @@ export default function IdealImage(props: Props): ReactNode {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ReactIdealImage
|
<ReactIdealImage
|
||||||
|
// @ts-expect-error: quick fix for React >= 19 not applying defaultProps
|
||||||
|
icons={ReactIdealImage.defaultProps.icons}
|
||||||
|
// @ts-expect-error: quick fix for React >= 19 not applying defaultProps
|
||||||
|
theme={ReactIdealImage.defaultProps.theme}
|
||||||
{...propsRest}
|
{...propsRest}
|
||||||
height={img.src.height ?? 100}
|
height={img.src.height ?? 100}
|
||||||
width={img.src.width ?? 100}
|
width={img.src.width ?? 100}
|
||||||
|
|
Loading…
Add table
Reference in a new issue