Skip to content

Commit dc248ec

Browse files
committed
fixed component rendering issue
1 parent e88392b commit dc248ec

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

app/src/components/main/DirectChildComponent.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ function DirectChildComponent({ childId, type, typeId, style, name }: ChildEleme
5151
state.canvasFocus.childId === childId ? '1px 1px 3px #a7cced' : ''
5252
};
5353

54-
// const combinedStyle = combineStyles(
55-
// combineStyles(
56-
// combineStyles(globalDefaultStyle, referencedComponent.style),
57-
// style
58-
// ),
59-
// interactiveStyle
60-
// );
54+
const combinedStyle = combineStyles(
55+
combineStyles(
56+
combineStyles(globalDefaultStyle, referencedComponent.style),
57+
style
58+
),
59+
interactiveStyle
60+
);
6161
// Renders name and not children of subcomponents to clean up Canvas view when dragging components
6262
// into the main canvas. To render html elements on canvas, import and invoke renderChildren
6363
return (
6464
<div
6565
onClick={onClickHandler}
66-
//style={combinedStyle}
66+
style={combinedStyle}
6767
ref={drag}
6868
>
6969
<strong>{name}</strong>

0 commit comments

Comments
 (0)