refactor(deps): remove some unneeded deps

This commit is contained in:
rektdeckard
2024-01-04 22:08:20 -07:00
parent b9e41ac135
commit aff7abbae6
7 changed files with 21 additions and 81 deletions

View File

@@ -6,7 +6,6 @@ import {
ReactNode,
} from "react";
import { useRecoilState } from "recoil";
import { useDebounce } from "react-use";
import { useHotkeys } from "react-hotkeys-hook";
import {
Command,
@@ -16,6 +15,7 @@ import {
} from "@phosphor-icons/react";
import ReactGA from "react-ga4";
import { useDebounce } from "@/hooks";
import { searchQueryAtom } from "@/state";
import "./SearchInput.css";
@@ -33,7 +33,7 @@ const SearchInput = (_: SearchInputProps) => {
const inputRef =
useRef<HTMLInputElement>() as MutableRefObject<HTMLInputElement>;
useHotkeys("ctrl+k,cmd+k", (e) => {
useHotkeys("ctrl+k,meta+k", (e) => {
e.preventDefault();
if (!e.repeat) {
inputRef.current?.focus();