From 5cea8f0621ee39962fc2907ed6be2038b956b963 Mon Sep 17 00:00:00 2001 From: Pranav Ramesh Date: Sun, 15 Sep 2024 00:06:36 -0400 Subject: [PATCH] sync options to local storage --- package.json | 3 +- src/components/practice/community.jsx | 28 ++++++++++- src/pages/create.jsx | 71 +++++++++++++++++++++++++++ 3 files changed, 100 insertions(+), 2 deletions(-) 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 }) {