Skip to content

Commit

Permalink
fix uniqueKey
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Mar 22, 2018
1 parent b9c0e61 commit 87000cc
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 1,095 deletions.
6 changes: 3 additions & 3 deletions src/ContentLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default {
type: String,
default: '#ecebeb'
},
uniquekey: {
uniqueKey: {
type: String
},
animate: {
Expand All @@ -40,8 +40,8 @@ export default {
},

render(h, { props, data, children }) {
const idClip = props.uniquekey ? `${props.uniquekey}-idClip` : uid()
const idGradient = props.uniquekey ? `${props.uniquekey}-idGradient` : uid()
const idClip = props.uniqueKey ? `${props.uniqueKey}-idClip` : uid()
const idGradient = props.uniqueKey ? `${props.uniqueKey}-idGradient` : uid()

return (
<svg
Expand Down
2 changes: 1 addition & 1 deletion stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ storiesOf('ContentLoader', module)
render() {
return (
<Container>
<ContentLoader uniquekey="unique-key" />
<ContentLoader uniqueKey="unique-key" />
</Container>
)
}
Expand Down
Loading

0 comments on commit 87000cc

Please sign in to comment.