mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 17:47:16 +00:00
Small cleanup refactor
This commit is contained in:
parent
25cc7fc959
commit
458fb426c9
1 changed files with 4 additions and 3 deletions
|
|
@ -511,11 +511,12 @@ function DummyComponent({ node }) {
|
|||
}
|
||||
|
||||
function XmlChildren({ node }) {
|
||||
const childNodes = node.children || [];
|
||||
const children = childNodes.map((childNode, i) => (
|
||||
if (node.children == null) {
|
||||
return null;
|
||||
}
|
||||
return node.children.map((childNode, i) => (
|
||||
<XmlNode key={i} node={childNode} {...childNode.attributes} />
|
||||
));
|
||||
return children;
|
||||
}
|
||||
|
||||
// Given a skin XML node, pick which component to use, and render it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue