diff --git a/website/layout/AutodocsLayout.js b/website/layout/AutodocsLayout.js index 10862c826..395adcee4 100644 --- a/website/layout/AutodocsLayout.js +++ b/website/layout/AutodocsLayout.js @@ -339,6 +339,7 @@ var ComponentDoc = React.createClass({ examples={method.examples} returns={method.returns} namedTypes={namedTypes} + entityName={this.props.componentName} /> ); }, @@ -409,7 +410,6 @@ var ComponentDoc = React.createClass({ }); var APIDoc = React.createClass({ - renderMethod: function(method, namedTypes) { return ( ); @@ -634,6 +634,7 @@ var Method = React.createClass({ if (!foundDescription) { return null; } + return (
Parameters: @@ -651,7 +652,7 @@ var Method = React.createClass({ {param.optional ? '[' + param.name + ']' : param.name}

- {renderTypeWithLinks(param.type, this.props.apiName, this.props.namedTypes)} + {renderTypeWithLinks(param.type, this.props.entityName, this.props.namedTypes)} {param.description} @@ -816,9 +817,9 @@ var Autodocs = React.createClass({ render: function() { var metadata = this.props.metadata; var docs = JSON.parse(this.props.children); - var content = docs.type === 'component' || docs.type === 'style' ? - : - ; + var content = docs.type === 'component' || docs.type === 'style' + ? + : ; return (