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