fixing some bugs making it more feasible

This commit is contained in:
talksik
2022-02-20 17:06:29 -08:00
parent 06b5e556ee
commit 1c1c3e59b8
2 changed files with 20 additions and 7 deletions
@@ -3,6 +3,7 @@ import { useRouter } from "next/router";
import { GlobalHotKeys, KeyMap, configure } from "react-hotkeys";
import { selectedConvoAtom, audioQueueAtom } from "../../recoil/main";
import { useSetRecoilState } from "recoil";
import toast from 'react-hot-toast'
export default function KeyboardShortcutHandler() {
const router = useRouter();
@@ -20,6 +21,8 @@ export default function KeyboardShortcutHandler() {
setSelectedPriorityConvo(null);
setAudioQueue([]);
toast.dismiss()
};
const keyMap: KeyMap = {