From b7078d750ef1314bc450ccde9bb5de14300b105a Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 13 Dec 2024 16:02:40 +0100 Subject: [PATCH] apply React 19 IdealImage retrocompat fix --- .../src/theme/IdealImage/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/docusaurus-plugin-ideal-image/src/theme/IdealImage/index.tsx b/packages/docusaurus-plugin-ideal-image/src/theme/IdealImage/index.tsx index a983927ec4a3..ab14a642cec2 100644 --- a/packages/docusaurus-plugin-ideal-image/src/theme/IdealImage/index.tsx +++ b/packages/docusaurus-plugin-ideal-image/src/theme/IdealImage/index.tsx @@ -93,6 +93,10 @@ export default function IdealImage(props: Props): ReactNode { return ( = 19 not applying defaultProps + icons={ReactIdealImage.defaultProps.icons} + // @ts-expect-error: quick fix for React >= 19 not applying defaultProps + theme={ReactIdealImage.defaultProps.theme} {...propsRest} height={img.src.height ?? 100} width={img.src.width ?? 100}