From 977c1df13cd5bbc234d3e0d9bb1cde6df657c840 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 2 Dec 2022 14:54:06 -0800 Subject: [PATCH] Remove unused dependencies --- components/JobSection/index.tsx | 4 +--- components/SearchModal/index.tsx | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/components/JobSection/index.tsx b/components/JobSection/index.tsx index 96ab419c..d026eb00 100644 --- a/components/JobSection/index.tsx +++ b/components/JobSection/index.tsx @@ -22,13 +22,11 @@ interface Props { } const JobSection = (props: Props) => { + const { party } = useSnapshot(appState) const { t } = useTranslation("common") const [job, setJob] = useState() const [imageUrl, setImageUrl] = useState("") - - const { party, jobSkills } = useSnapshot(appState) - const [numSkills, setNumSkills] = useState(4) const [skills, setSkills] = useState<{ [key: number]: JobSkill | undefined }>( [] diff --git a/components/SearchModal/index.tsx b/components/SearchModal/index.tsx index 9ba47017..c9ecfaf0 100644 --- a/components/SearchModal/index.tsx +++ b/components/SearchModal/index.tsx @@ -1,11 +1,9 @@ import React, { useEffect, useState } from "react" import { getCookie, setCookie } from "cookies-next" import { useRouter } from "next/router" -import { useSnapshot } from "valtio" import { useTranslation } from "react-i18next" import InfiniteScroll from "react-infinite-scroll-component" -import { appState } from "~utils/appState" import api from "~utils/api" import * as Dialog from "@radix-ui/react-dialog"