diff --git a/package-lock.json b/package-lock.json index be1e20f4a..22b32d09a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3073,9 +3073,9 @@ } }, "@types/react-native": { - "version": "0.61.10", - "resolved": "https://registry.npmjs.org/@types/react-native/-/react-native-0.61.10.tgz", - "integrity": "sha512-z+RWEFfdwHnOLpq70DO//4mjyNqoZypdR3uBqpBB82t2HJg2YbY4j6XIow7sFqeO/r8XibgV9UFEVG2tYIRlSA==", + "version": "0.62.14", + "resolved": "https://registry.npmjs.org/@types/react-native/-/react-native-0.62.14.tgz", + "integrity": "sha512-ItBgiEQks2Mid6GsiLBx75grNH0glaKemTK9V7G+vSnvP+Zk3x1Wr+aTy4dJxRPPMg14DAJyYePLZwj2cigXbw==", "dev": true, "requires": { "@types/react": "*" @@ -3201,9 +3201,9 @@ "dev": true }, "@types/styled-components": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/@types/styled-components/-/styled-components-4.4.2.tgz", - "integrity": "sha512-dngFx2PuGoy0MGE68eHayAmJvLSqWrnTe9w+DnQruu8PS+waWEsKmoBRhkzL2h2pK1OJhzJhVfuiz+oZa4etpA==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@types/styled-components/-/styled-components-5.1.0.tgz", + "integrity": "sha512-ZFlLCuwF5r+4Vb7JUmd+Yr2S0UBdBGmI7ctFTgJMypIp3xOHI4LCFVn2dKMvpk6xDB2hLRykrEWMBwJEpUAUIQ==", "dev": true, "requires": { "@types/hoist-non-react-statics": "*", @@ -20634,6 +20634,12 @@ "jsonfile": "^4.0.0", "universalify": "^0.1.0" } + }, + "typescript": { + "version": "3.7.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.5.tgz", + "integrity": "sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw==", + "dev": true } } }, @@ -20650,9 +20656,9 @@ } }, "typescript": { - "version": "3.7.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.5.tgz", - "integrity": "sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw==", + "version": "3.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.5.tgz", + "integrity": "sha512-hSAifV3k+i6lEoCJ2k6R2Z/rp/H3+8sdmcn5NrS3/3kE7+RyZXm9aqvxWqjEXHAd8b0pShatpcdMTvEdvAJltQ==", "dev": true }, "ua-parser-js": { diff --git a/package.json b/package.json index 0ede3c2a3..670f00389 100644 --- a/package.json +++ b/package.json @@ -163,7 +163,7 @@ "@types/react-select": "^3.0.10", "@types/react-test-renderer": "^16.9.2", "@types/react-virtualized": "^9.21.7", - "@types/styled-components": "4.4.2", + "@types/styled-components": "^5.1.0", "@types/supertest": "^2.0.8", "@types/yup": "^0.26.29", "@typescript-eslint/eslint-plugin": "^2.18.0", @@ -203,7 +203,7 @@ "ts-jest": "^25.1.0", "ts-node-dev": "^1.0.0-pre.44", "typedoc": "^0.16.9", - "typescript": "^3.7.5", + "typescript": "^3.9.5", "webpack": "^4.41.5", "webpack-dev-server": "^3.10.2", "webpack-merge": "^4.2.2" diff --git a/src/client/routes/manage/SponsorHackerView.tsx b/src/client/routes/manage/SponsorHackerView.tsx index 908e48af5..48e957e5e 100644 --- a/src/client/routes/manage/SponsorHackerView.tsx +++ b/src/client/routes/manage/SponsorHackerView.tsx @@ -8,12 +8,12 @@ import STRINGS from '../../assets/strings.json'; import { HackerView } from './HackerView'; import HackerTable from './HackerTable'; import { defaultTableState, TableContext } from '../../contexts/TableContext'; -import { useHackersQuery, useMeSponsorQuery, Sponsor } from '../../generated/graphql'; +import { useHackersQuery, useMeSponsorQuery, Sponsor, HackersQuery } from '../../generated/graphql'; export const SponsorHackerView: FunctionComponent = (): JSX.Element => { const { loading, error, data } = useHackersQuery(); const [tableState, updateTableState] = useImmer(defaultTableState); - const [filteredData, setFilteredData] = useState(); + const [filteredData, setFilteredData] = useState(); const sponsorMeQueryResult = useMeSponsorQuery(); const sponsorLoading = sponsorMeQueryResult.loading; const sponsorError = sponsorMeQueryResult.error;