diff --git a/package.json b/package.json index 62c0282d..f36fd898 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,8 @@ "tailwind-merge": "^2.3.0", "tailwindcss": "^3.2.1", "tailwindcss-animate": "^1.0.7", - "xterm": "^5.3.0" + "xterm": "^5.3.0", + "node-fetch": "^2.6.7" }, "devDependencies": { "eslint": "8.26.0", diff --git a/src/components/practice/community.jsx b/src/components/practice/community.jsx index 14689a20..be6e7f2b 100644 --- a/src/components/practice/community.jsx +++ b/src/components/practice/community.jsx @@ -5,6 +5,7 @@ import { Listbox, Transition } from '@headlessui/react'; import { CheckIcon, ChevronUpDownIcon } from '@heroicons/react/24/solid'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faFolderOpen } from '@fortawesome/free-solid-svg-icons'; + function getCategoryIcon(category) { switch (category.toLowerCase()) { case 'forensics': @@ -79,7 +80,6 @@ function CategorySelect({ category, setCategory, isDifficulty }) {