Skip to content

Commit

Permalink
upgrade IdealImage fork, remove defaultProps/propTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Dec 24, 2024
1 parent 4148640 commit d635c49
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-ideal-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@docusaurus/theme-translations": "3.6.3",
"@docusaurus/types": "3.6.3",
"@docusaurus/utils-validation": "3.6.3",
"@slorber/react-ideal-image": "^0.0.12",
"@slorber/react-ideal-image": "^0.0.14",
"react-waypoint": "^10.3.0",
"sharp": "^0.32.3",
"tslib": "^2.6.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ export default function IdealImage(props: Props): ReactNode {

return (
<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}
height={img.src.height ?? 100}
width={img.src.width ?? 100}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3352,10 +3352,10 @@
dependencies:
"@sinonjs/commons" "^3.0.0"

"@slorber/react-ideal-image@^0.0.12":
version "0.0.12"
resolved "https://registry.yarnpkg.com/@slorber/react-ideal-image/-/react-ideal-image-0.0.12.tgz#5f867f9e10f2d82456568e8fd5bfb7673089c29c"
integrity sha512-u8KiDTEkMA7/KAeA5ywg/P7YG4zuKhWtswfVZDH8R8HXgQsFcHIYU2WaQnGuK/Du7Wdj90I+SdFmajSGFRvoKA==
"@slorber/react-ideal-image@^0.0.14":
version "0.0.14"
resolved "https://registry.yarnpkg.com/@slorber/react-ideal-image/-/react-ideal-image-0.0.14.tgz#35b0756c6f06ec60c4a2b5cae9dcf346500e1e8a"
integrity sha512-ULJ1VtNg+B5puJp4ZQzEnDqYyDT9erbABoQygmAovg35ltOymLMH8jXPuxJQBVskcmaG29bTZ+++hE/PAXRgxA==

"@slorber/remark-comment@^1.0.0":
version "1.0.0"
Expand Down

0 comments on commit d635c49

Please sign in to comment.