가이드 삭제

This commit is contained in:
dohyeons
2025-10-22 10:07:02 +09:00
parent 774332558b
commit 0823874ebc
2 changed files with 2 additions and 117 deletions
@@ -8,7 +8,6 @@ import { ElementConfigModal } from "./ElementConfigModal";
import { ListWidgetConfigModal } from "./widgets/ListWidgetConfigModal";
import { YardWidgetConfigModal } from "./widgets/YardWidgetConfigModal";
import { DashboardSaveModal } from "./DashboardSaveModal";
import { KeyboardShortcutsGuide } from "./KeyboardShortcutsGuide";
import { DashboardElement, ElementType, ElementSubtype } from "./types";
import { GRID_CONFIG, snapToGrid, snapSizeToGrid, calculateCellSize } from "./gridUtils";
import { Resolution, RESOLUTIONS, detectScreenResolution } from "./ResolutionSelector";
@@ -27,7 +26,7 @@ import {
AlertDialogTitle,
} from "@/components/ui/alert-dialog";
import { Button } from "@/components/ui/button";
import { CheckCircle2, Keyboard } from "lucide-react";
import { CheckCircle2 } from "lucide-react";
interface DashboardDesignerProps {
dashboardId?: string;
@@ -58,7 +57,6 @@ export default function DashboardDesigner({ dashboardId: initialDashboardId }: D
const [dashboardDescription, setDashboardDescription] = useState<string>("");
const [successModalOpen, setSuccessModalOpen] = useState(false);
const [clearConfirmOpen, setClearConfirmOpen] = useState(false);
const [shortcutsGuideOpen, setShortcutsGuideOpen] = useState(false);
// 클립보드 (복사/붙여넣기용)
const [clipboard, setClipboard] = useState<DashboardElement | null>(null);
@@ -337,7 +335,7 @@ export default function DashboardDesigner({ dashboardId: initialDashboardId }: D
onDelete: handleDeleteSelected,
onCopy: handleCopyElement,
onPaste: handlePasteElement,
enabled: !saveModalOpen && !successModalOpen && !clearConfirmOpen && !shortcutsGuideOpen,
enabled: !saveModalOpen && !successModalOpen && !clearConfirmOpen,
});
// 전체 삭제 확인 모달 열기
@@ -653,21 +651,6 @@ export default function DashboardDesigner({ dashboardId: initialDashboardId }: D
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>
{/* 키보드 단축키 가이드 모달 */}
<KeyboardShortcutsGuide isOpen={shortcutsGuideOpen} onClose={() => setShortcutsGuideOpen(false)} />
{/* 키보드 단축키 도움말 플로팅 버튼 */}
<div className="fixed right-8 bottom-8 z-50">
<Button
onClick={() => setShortcutsGuideOpen(true)}
size="lg"
className="h-12 w-12 rounded-full p-0 shadow-lg"
title="키보드 단축키 (?"
>
<Keyboard className="h-5 w-5" />
</Button>
</div>
</div>
</DashboardProvider>
);