사이드바 방식 변경하면서 생긴 오류 해결

This commit is contained in:
dohyeons
2025-10-22 15:29:57 +09:00
parent 01ebb2550c
commit 994d9b70cd
8 changed files with 679 additions and 367 deletions

View File

@@ -8,7 +8,7 @@ import { VehicleMapConfigPanel } from "./VehicleMapConfigPanel";
import { DatabaseConfig } from "./data-sources/DatabaseConfig";
import { ApiConfig } from "./data-sources/ApiConfig";
import { ListWidgetConfigSidebar } from "./widgets/ListWidgetConfigSidebar";
import { YardWidgetConfigModal } from "./widgets/YardWidgetConfigModal";
import { YardWidgetConfigSidebar } from "./widgets/YardWidgetConfigSidebar";
import { X } from "lucide-react";
import { cn } from "@/lib/utils";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
@@ -131,16 +131,16 @@ export function ElementConfigSidebar({ element, isOpen, onClose, onApply }: Elem
);
}
// 야드 위젯은 별도 모달로 처리
// 야드 위젯은 사이드바로 처리
if (element.subtype === "yard-management-3d") {
return (
<YardWidgetConfigModal
<YardWidgetConfigSidebar
element={element}
isOpen={isOpen}
onClose={onClose}
onSave={(updatedElement) => {
onApply({ ...element, ...updatedElement });
onApply={(updates) => {
onApply({ ...element, ...updates });
}}
onClose={onClose}
/>
);
}