alert 모달 처리

This commit is contained in:
dohyeons
2025-10-16 16:51:24 +09:00
parent 5093d336c0
commit abed34ce9a
2 changed files with 51 additions and 45 deletions

View File

@@ -11,7 +11,7 @@ import {
SelectTrigger,
SelectValue,
} from "@/components/ui/select";
import { Save, Trash2, Eye, Palette } from "lucide-react";
import { Save, Trash2, Palette } from "lucide-react";
import { ElementType, ElementSubtype } from "./types";
import { ResolutionSelector, Resolution } from "./ResolutionSelector";
import { Input } from "@/components/ui/input";
@@ -20,7 +20,6 @@ import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover
interface DashboardTopMenuProps {
onSaveLayout: () => void;
onClearCanvas: () => void;
onViewDashboard?: () => void;
dashboardTitle?: string;
onAddElement?: (type: ElementType, subtype: ElementSubtype) => void;
resolution?: Resolution;
@@ -33,12 +32,11 @@ interface DashboardTopMenuProps {
/**
* 대시보드 편집 화면 상단 메뉴바
* - 차트/위젯 선택 (셀렉트박스)
* - 저장/초기화/보기 버튼
* - 저장/초기화 버튼
*/
export function DashboardTopMenu({
onSaveLayout,
onClearCanvas,
onViewDashboard,
dashboardTitle,
onAddElement,
resolution = "fhd",
@@ -211,12 +209,6 @@ export function DashboardTopMenu({
{/* 우측: 액션 버튼 */}
<div className="flex items-center gap-2">
{onViewDashboard && (
<Button variant="outline" size="sm" onClick={onViewDashboard} className="gap-2">
<Eye className="h-4 w-4" />
</Button>
)}
<Button variant="outline" size="sm" onClick={onClearCanvas} className="gap-2 text-red-600 hover:text-red-700">
<Trash2 className="h-4 w-4" />