diff --git a/modern/src/App.js b/modern/src/App.js
index 77318d2d..56db34f7 100644
--- a/modern/src/App.js
+++ b/modern/src/App.js
@@ -159,7 +159,7 @@ function GuiObjectEvents({ node, children }) {
}
function Container(props) {
- const { id, node, children, default_x, default_y, default_visible } = props;
+ const { id, node, default_x, default_y, default_visible } = props;
const style = {
position: "absolute",
};
@@ -176,7 +176,7 @@ function Container(props) {
return (
- {children}
+
);
@@ -197,7 +197,6 @@ function Layout({
minimum_w,
maximum_w,
// droptarget,
- children,
}) {
if (drawBackground && background == null) {
console.warn("Got a Layout without a background. Rendering null", id);
@@ -233,7 +232,7 @@ function Layout({
position: "absolute",
}}
>
- {children}
+
);
@@ -264,7 +263,7 @@ function Layout({
...params,
}}
>
- {children}
+
);
@@ -325,7 +324,6 @@ function Button({
downImage,
tooltip,
node,
- children,
}) {
const [down, setDown] = React.useState(false);
const imgId = down && downImage ? downImage : image;
@@ -371,7 +369,7 @@ function Button({
backgroundImage: `url(${img.imgUrl})`,
}}
>
- {children}
+
);
@@ -416,7 +414,7 @@ function ToggleButton(props) {
return ;
}
-function Group({ node, id, children, x, y }) {
+function Group({ node, id, x, y }) {
const style = {
position: "absolute",
};
@@ -429,7 +427,7 @@ function Group({ node, id, children, x, y }) {
return (
- {children}
+
);
@@ -438,7 +436,6 @@ function Group({ node, id, children, x, y }) {
function Text({
node,
id,
- children,
display,
// ticker,
// antialias,
@@ -490,7 +487,7 @@ function Text({
}}
>
{nodeText}
- {children}
+
);
@@ -507,9 +504,9 @@ const NODE_NAME_TO_COMPONENT = {
text: Text,
};
-function DummyComponent({ node, children }) {
+function DummyComponent({ node }) {
console.warn("Unknown node type", node.name);
- return <>{children}>;
+ return ;
}
function XmlChildren({ node }) {
@@ -538,11 +535,7 @@ function XmlNode({ node }) {
}
useJsUpdates(node);
const Component = NODE_NAME_TO_COMPONENT[name] || DummyComponent;
- return (
-
-
-
- );
+ return ;
}
function getSkinUrlFromQueryParams() {