From a6280a16abe1d2dc4d29f246e4b129971e2be68e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 15 Sep 2024 05:10:29 +0000 Subject: [PATCH 1/2] Bump @types/react from 18.3.3 to 18.3.5 Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.3.3 to 18.3.5. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: "@types/react" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 037842ed2..cf25d0f72 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6856,9 +6856,9 @@ "dev": true }, "@types/react": { - "version": "18.3.3", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.3.tgz", - "integrity": "sha512-hti/R0pS0q1/xx+TsI73XIqk26eBsISZ2R0wUijXIngRK9R/e7Xw/cXVxQK7R5JjW+SV4zGcn5hXjudkN/pLIw==", + "version": "18.3.5", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.5.tgz", + "integrity": "sha512-WeqMfGJLGuLCqHGYRGHxnKrXcTitc6L/nBUWfWPcTarG3t9PsquqUMuVeXZeca+mglY4Vo5GZjCi0A3Or2lnxA==", "requires": { "@types/prop-types": "*", "csstype": "^3.0.2" diff --git a/package.json b/package.json index c2c481378..416f00b4b 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "@types/mustache": "^4.2.5", "@types/node": "^14.18.63", "@types/portscanner": "^2.1.4", - "@types/react": "^18.3.3", + "@types/react": "^18.3.5", "@types/react-copy-to-clipboard": "^5.0.7", "@types/react-dom": "^18.3.0", "@types/react-router-bootstrap": "^0.26.6", From 405849ff00e7bac6fae2e9f0e23229b6d5e54403 Mon Sep 17 00:00:00 2001 From: Drew Fisher Date: Sun, 15 Sep 2024 00:15:57 -0700 Subject: [PATCH 2/2] Fix typing in usage of forwardRef --- imports/client/components/HuntListPage.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/imports/client/components/HuntListPage.tsx b/imports/client/components/HuntListPage.tsx index 28b6d418c..dd7372c53 100644 --- a/imports/client/components/HuntListPage.tsx +++ b/imports/client/components/HuntListPage.tsx @@ -98,11 +98,8 @@ type CreateFixtureModalFormHandle = { show: () => void; }; -const CreateFixtureModal = React.forwardRef( - ( - _props: { ref: React.Ref }, - forwardedRef: React.Ref, - ) => { +const CreateFixtureModal = React.forwardRef( + (_props, forwardedRef) => { const [visible, setVisible] = useState(true); const show = useCallback(() => setVisible(true), []); const hide = useCallback(() => setVisible(false), []);