아코디언 컴포넌트 생성
This commit is contained in:
@@ -91,13 +91,14 @@ export const DynamicComponentRenderer: React.FC<DynamicComponentRendererProps> =
|
||||
children,
|
||||
...props
|
||||
}) => {
|
||||
// component_config에서 실제 컴포넌트 타입 추출
|
||||
const componentType = component.componentConfig?.type || component.type;
|
||||
// 컴포넌트 타입 추출 - 새 시스템에서는 componentType 속성 사용, 레거시는 type 사용
|
||||
const componentType = (component as any).componentType || component.type;
|
||||
|
||||
console.log("🔍 컴포넌트 타입 추출:", {
|
||||
componentId: component.id,
|
||||
componentConfigType: component.componentConfig?.type,
|
||||
componentType: component.type,
|
||||
componentTypeProp: (component as any).componentType,
|
||||
finalComponentType: componentType,
|
||||
componentConfig: component.componentConfig,
|
||||
propsScreenId: props.screenId,
|
||||
|
||||
Reference in New Issue
Block a user