|
|
@ -5,7 +5,6 @@ import { useAppSelector } from "../store";
|
|
|
|
import * as utils from "../helpers/utils";
|
|
|
|
import * as utils from "../helpers/utils";
|
|
|
|
import useToggle from "../hooks/useToggle";
|
|
|
|
import useToggle from "../hooks/useToggle";
|
|
|
|
import useLoading from "../hooks/useLoading";
|
|
|
|
import useLoading from "../hooks/useLoading";
|
|
|
|
import { closeSidebar } from "../helpers/utils";
|
|
|
|
|
|
|
|
import Icon from "./Icon";
|
|
|
|
import Icon from "./Icon";
|
|
|
|
import toastHelper from "./Toast";
|
|
|
|
import toastHelper from "./Toast";
|
|
|
|
import showCreateShortcutDialog from "./CreateShortcutDialog";
|
|
|
|
import showCreateShortcutDialog from "./CreateShortcutDialog";
|
|
|
@ -64,7 +63,6 @@ const ShortcutContainer: React.FC<ShortcutContainerProps> = (props: ShortcutCont
|
|
|
|
const [showConfirmDeleteBtn, toggleConfirmDeleteBtn] = useToggle(false);
|
|
|
|
const [showConfirmDeleteBtn, toggleConfirmDeleteBtn] = useToggle(false);
|
|
|
|
|
|
|
|
|
|
|
|
const handleShortcutClick = () => {
|
|
|
|
const handleShortcutClick = () => {
|
|
|
|
closeSidebar();
|
|
|
|
|
|
|
|
if (isActive) {
|
|
|
|
if (isActive) {
|
|
|
|
locationService.setMemoShortcut(undefined);
|
|
|
|
locationService.setMemoShortcut(undefined);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|