From 39e3aa14cba8b5e7ec3627e220fcbafe19eae896 Mon Sep 17 00:00:00 2001 From: dohyeons Date: Mon, 13 Oct 2025 17:21:24 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9A=B0=EC=B8=A1=20=EC=82=AC=EC=9D=B4?= =?UTF-8?q?=EB=93=9C=EB=B0=94=20=EB=84=88=EB=B9=84=20=EC=A1=B0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/dashboard/DashboardSidebar.tsx | 38 +++++++------------ 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/frontend/components/admin/dashboard/DashboardSidebar.tsx b/frontend/components/admin/dashboard/DashboardSidebar.tsx index 619f0dba..a9eb2659 100644 --- a/frontend/components/admin/dashboard/DashboardSidebar.tsx +++ b/frontend/components/admin/dashboard/DashboardSidebar.tsx @@ -1,7 +1,7 @@ -'use client'; +"use client"; -import React from 'react'; -import { DragData, ElementType, ElementSubtype } from './types'; +import React from "react"; +import { DragData, ElementType, ElementSubtype } from "./types"; /** * 대시보드 사이드바 컴포넌트 @@ -12,18 +12,16 @@ export function DashboardSidebar() { // 드래그 시작 처리 const handleDragStart = (e: React.DragEvent, type: ElementType, subtype: ElementSubtype) => { const dragData: DragData = { type, subtype }; - e.dataTransfer.setData('application/json', JSON.stringify(dragData)); - e.dataTransfer.effectAllowed = 'copy'; + e.dataTransfer.setData("application/json", JSON.stringify(dragData)); + e.dataTransfer.effectAllowed = "copy"; }; return ( -
+
{/* 차트 섹션 */}
-

- 📊 차트 종류 -

- +

📊 차트 종류

+
-

- 🔧 위젯 종류 -

- +

🔧 위젯 종류

+
onDragStart(e, type, subtype)} > - {icon} + {icon} {title}
);