Skip to content

Commit

Permalink
refactor(getDocgenInfo): prefix _meta variable
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason committed Apr 1, 2016
1 parent 0edbf7c commit 9d46dd5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/app/utils/getComponentDocInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ import docgenInfo from '../docgenInfo.json'
/**
* This util extracts and formats a doc object from docgenInfo.json for a single `component` and merges it with
* the component's meta information.
* @param {string} meta Stardust component _meta object.
* @param {string} _meta Stardust component _meta object.
* @returns {{}} Documentation object.
*/
export default (meta) => {
const docPath = _.find(_.keys(docgenInfo), path => path.includes(`/${meta.name}.js`))
export default (_meta) => {
const docPath = _.find(_.keys(docgenInfo), path => path.includes(`/${_meta.name}.js`))
const definition = docgenInfo[docPath]

return {
name: meta.name,
name: _meta.name,
path: docPath,
parent: meta.parent,
type: meta.type,
parent: _meta.parent,
type: _meta.type,
docBlock: definition.docBlock,
props: definition.props,
}
Expand Down

0 comments on commit 9d46dd5

Please sign in to comment.