diff --git a/client/package-lock.json b/client/package-lock.json index 6ebe9d47..00f65616 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -38,6 +38,7 @@ "html-webpack-plugin": "^5.5.1", "prettier": "^2.8.8", "style-loader": "^3.3.2", + "typescript": "^5.0.4", "webpack": "^5.81.0", "webpack-cli": "^5.1.4", "webpack-dev-server": "^4.13.3" @@ -8156,6 +8157,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/typescript": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", + "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=12.20" + } + }, "node_modules/unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", @@ -14764,6 +14778,12 @@ "is-typed-array": "^1.1.9" } }, + "typescript": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", + "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==", + "dev": true + }, "unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", diff --git a/client/package.json b/client/package.json index efb87cd4..06f1cbd0 100644 --- a/client/package.json +++ b/client/package.json @@ -28,6 +28,7 @@ "html-webpack-plugin": "^5.5.1", "prettier": "^2.8.8", "style-loader": "^3.3.2", + "typescript": "^5.0.4", "webpack": "^5.81.0", "webpack-cli": "^5.1.4", "webpack-dev-server": "^4.13.3" diff --git a/client/src/page/community/CommunityPost.js b/client/src/page/community/CommunityPost.js index 69812162..32d9f788 100644 --- a/client/src/page/community/CommunityPost.js +++ b/client/src/page/community/CommunityPost.js @@ -62,7 +62,7 @@ const Commpost = () => { return ( {currentItems && - currentItems.map((el) => ( + currentItems.map((el, index) => (