diff --git a/addons/info/src/components/Node.js b/addons/info/src/components/Node.js index 34bf3aad17bb..6861665fca2e 100644 --- a/addons/info/src/components/Node.js +++ b/addons/info/src/components/Node.js @@ -106,7 +106,7 @@ export default function Node(props) { /> > - {React.Children.map(children, childElement => ( + {React.Children.map(children, childElement => - ))} + )}
</{name}>
diff --git a/addons/info/src/components/PropTable.js b/addons/info/src/components/PropTable.js index ca44d6e4d977..ded666436083 100644 --- a/addons/info/src/components/PropTable.js +++ b/addons/info/src/components/PropTable.js @@ -98,7 +98,7 @@ export default function PropTable(props) { - {array.map(row => ( + {array.map(row => {row.property} {row.propType} @@ -110,7 +110,7 @@ export default function PropTable(props) { {row.description} - ))} + )} ); diff --git a/addons/info/src/components/Story.js b/addons/info/src/components/Story.js index 1f39e400ab4e..81658059c37b 100644 --- a/addons/info/src/components/Story.js +++ b/addons/info/src/components/Story.js @@ -264,7 +264,7 @@ export default class Story extends React.Component {

Story Source

-          {React.Children.map(this.props.children, (root, idx) => (
+          {React.Children.map(this.props.children, (root, idx) =>
             
-          ))}
+          )}
         
); @@ -329,7 +329,7 @@ export default class Story extends React.Component { array.sort((a, b) => (a.displayName || a.name) > (b.displayName || b.name)); const { maxPropObjectKeys, maxPropArrayLength, maxPropStringLength } = this.props; - const propTables = array.map(type => ( + const propTables = array.map(type =>

"{type.displayName || type.name}" Component @@ -341,7 +341,7 @@ export default class Story extends React.Component { maxPropStringLength={maxPropStringLength} />

- )); + ); if (!propTables || propTables.length === 0) { return null; diff --git a/app/react/src/server/middleware.js b/app/react/src/server/middleware.js index d15201c82a28..aa61721ca00a 100644 --- a/app/react/src/server/middleware.js +++ b/app/react/src/server/middleware.js @@ -50,14 +50,14 @@ export default function(configDir) { }; router.get('/', (req, res) => { - const headHtml = getManagerHeadHtml(configDir) + const headHtml = getManagerHeadHtml(configDir); res.send(getIndexHtml({ publicPath, headHtml })); }); router.get('/iframe.html', (req, res) => { const headHtml = getHeadHtml(configDir); res.send(getIframeHtml({ ...data, headHtml, publicPath })); - }); + }); if (stats.toJson().errors.length) { webpackReject(stats);