Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rcdexta committed May 12, 2018
1 parent 6cf97cc commit 739c845
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/ToggleTip.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ class ToggleTip extends React.Component {
return classes.join(' ')
}

get content() {
get content () {
return this.props.children || this.props.icon || <InfoIcon style={{cursor: 'pointer', verticalAlign: 'none'}} />
}

render () {
return (
<span className={this.ttlpClasses} style={{display: 'flex', marginLeft: 3}} aria-label={this.label}>
<span className={this.ttlpClasses} style={{display: 'flex', marginLeft: 3}} aria-label={this.label}>
{this.content}
</span>
)
Expand All @@ -47,7 +47,8 @@ ToggleTip.propTypes = {
'top-left'
]),
animated: PropTypes.bool,
icon: PropTypes.node
icon: PropTypes.node,
children: PropTypes.node
}

ToggleTip.defaultProps = {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@storybook/addon-storysource": "^3.4.3",
"@storybook/addons": "^3.4.3",
"@storybook/react": "^3.4.3",
"@storybook/storybook-deployer": "^2.3.0",
"autoprefixer": "^8.4.1",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
Expand Down
20 changes: 20 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,15 @@
webpack "^3.11.0"
webpack-hot-middleware "^2.22.1"

"@storybook/storybook-deployer@^2.3.0":
version "2.3.0"
resolved "https://registry.yarnpkg.com/@storybook/storybook-deployer/-/storybook-deployer-2.3.0.tgz#43d3cc105a571e27b9c3e363c43d7da4a6a486e9"
dependencies:
git-url-parse "^8.1.0"
parse-repo "^1.0.4"
shelljs "^0.8.1"
yargs "^11.0.0"

"@storybook/ui@3.4.3":
version "3.4.3"
resolved "https://registry.yarnpkg.com/@storybook/ui/-/ui-3.4.3.tgz#8f3f43da32290abab2e4293d2567316b2d2ce91a"
Expand Down Expand Up @@ -4436,6 +4445,13 @@ git-up@^2.0.0:
is-ssh "^1.3.0"
parse-url "^1.3.0"

git-url-parse@^8.1.0:
version "8.3.1"
resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-8.3.1.tgz#9d7d762993dc498aab16937c844e11afe3748817"
dependencies:
git-up "^2.0.0"
parse-domain "^2.0.0"

git-url-parse@^9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-9.0.0.tgz#a82a36acc3544c77ed0984d6488b37fbcfbec24d"
Expand Down Expand Up @@ -7088,6 +7104,10 @@ parse-passwd@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6"

parse-repo@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/parse-repo/-/parse-repo-1.0.4.tgz#74b91d2cb8675d11b99976a0065f6ce17fa1bcc8"

parse-url@^1.3.0:
version "1.3.11"
resolved "https://registry.yarnpkg.com/parse-url/-/parse-url-1.3.11.tgz#57c15428ab8a892b1f43869645c711d0e144b554"
Expand Down

0 comments on commit 739c845

Please sign in to comment.