From d948aa3d3d522eb7310eeb0811ac8404422cf9c1 Mon Sep 17 00:00:00 2001 From: leeheejin Date: Fri, 17 Oct 2025 10:14:59 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20CanvasElement=EC=97=90=20Warehouse3DWidg?= =?UTF-8?q?et=20=EB=A0=8C=EB=8D=94=EB=A7=81=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 대시보드 디자이너에서 warehouse-3d 위젯이 표시되지 않던 문제 수정 - dynamic import 및 렌더링 케이스 추가 --- .../components/admin/dashboard/CanvasElement.tsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/frontend/components/admin/dashboard/CanvasElement.tsx b/frontend/components/admin/dashboard/CanvasElement.tsx index ccf8ff13..b45d8ed3 100644 --- a/frontend/components/admin/dashboard/CanvasElement.tsx +++ b/frontend/components/admin/dashboard/CanvasElement.tsx @@ -98,6 +98,17 @@ const DocumentWidget = dynamic(() => import("@/components/dashboard/widgets/Docu loading: () =>
로딩 중...
, }); +const Warehouse3DWidget = dynamic( + () => + import("@/components/admin/dashboard/widgets/Warehouse3DWidget").then((mod) => ({ + default: mod.Warehouse3DWidget, + })), + { + ssr: false, + loading: () =>
로딩 중...
, + }, +); + // 시계 위젯 임포트 import { ClockWidget } from "./widgets/ClockWidget"; // 달력 위젯 임포트 @@ -727,6 +738,11 @@ export function CanvasElement({
+ ) : element.type === "widget" && element.subtype === "warehouse-3d" ? ( + // 창고 현황 3D 위젯 렌더링 +
+ +
) : ( // 기타 위젯 렌더링