diff --git a/package.json b/package.json index d7d843b9b3..71ebe25f0c 100644 --- a/package.json +++ b/package.json @@ -46,8 +46,8 @@ "@types/enzyme": "^3.10.3", "@types/jest": "^24.0.17", "@types/node": "^12.7.1", - "@types/react": "^16.8.19", - "@types/react-dom": "^16.8.4", + "@types/react": "^16.9.2", + "@types/react-dom": "^16.9.0", "@types/react-router": "^5.0.3", "@types/react-router-dom": "^4.3.5", "@types/storybook__react": "^4.0.2", @@ -98,7 +98,8 @@ "react-table": "7.0.0-alpha.35" }, "peerDependencies": { - "react": "^16.8.6", + "react": "^16.9.0", + "react-dom": "^16.9.0", "react-router": "^5.0.1", "react-router-dom": "^5.0.1" }, diff --git a/src/hooks/UsePortal/portal-container.tsx b/src/hooks/UsePortal/portal-container.tsx index b3353436ea..89d26d4d14 100644 --- a/src/hooks/UsePortal/portal-container.tsx +++ b/src/hooks/UsePortal/portal-container.tsx @@ -5,7 +5,7 @@ interface PortalContainerProps { portals: { [key: string]: React.ComponentType } } -const PortalContainer = React.memo(({ portals }: PortalContainerProps) => { +const PortalContainer: React.SFC = React.memo(({ portals }: PortalContainerProps) => { const [mountNode, setMountNode] = React.useState(undefined) React.useEffect(() => { setMountNode(document.body) diff --git a/yarn.lock b/yarn.lock index 23dfbf5ebb..e569fe3c35 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1758,10 +1758,10 @@ resolved "https://registry.yarnpkg.com/@types/q/-/q-1.5.2.tgz#690a1475b84f2a884fd07cd797c00f5f31356ea8" integrity sha512-ce5d3q03Ex0sy4R14722Rmt6MT07Ua+k4FwDfdcToYJcMKNtRVQvJ6JCAPdAmAnbRb6CsX6aYb9m96NGod9uTw== -"@types/react-dom@^16.8.4": - version "16.8.5" - resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-16.8.5.tgz#3e3f4d99199391a7fb40aa3a155c8dd99b899cbd" - integrity sha512-idCEjROZ2cqh29+trmTmZhsBAUNQuYrF92JHKzZ5+aiFM1mlSk3bb23CK7HhYuOY75Apgap5y2jTyHzaM2AJGA== +"@types/react-dom@^16.9.0": + version "16.9.0" + resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-16.9.0.tgz#ba6ddb00bf5de700b0eb91daa452081ffccbfdea" + integrity sha512-OL2lk7LYGjxn4b0efW3Pvf2KBVP0y1v3wip1Bp7nA79NkOpElH98q3WdCEdDj93b2b0zaeBG9DvriuKjIK5xDA== dependencies: "@types/react" "*" @@ -1782,7 +1782,7 @@ "@types/history" "*" "@types/react" "*" -"@types/react@*", "@types/react@^16.8.19": +"@types/react@*": version "16.9.1" resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.1.tgz#862c83b4c9d5cd116e42fd9a4f3694843cd2c051" integrity sha512-jGM2x8F7m7/r+81N/BOaUKVwbC5Cdw6ExlWEUpr77XPwVeNvAppnPEnMMLMfxRDYL8FPEX8MHjwtD2NQMJ0yyQ== @@ -1790,6 +1790,14 @@ "@types/prop-types" "*" csstype "^2.2.0" +"@types/react@^16.9.2": + version "16.9.2" + resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.2.tgz#6d1765431a1ad1877979013906731aae373de268" + integrity sha512-jYP2LWwlh+FTqGd9v7ynUKZzjj98T8x7Yclz479QdRhHfuW9yQ+0jjnD31eXSXutmBpppj5PYNLYLRfnZJvcfg== + dependencies: + "@types/prop-types" "*" + csstype "^2.2.0" + "@types/resolve@0.0.8": version "0.0.8" resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-0.0.8.tgz#f26074d238e02659e323ce1a13d041eee280e194"