Permalink
Browse files

fix uniqueKey

  • Loading branch information...
egoist committed Mar 22, 2018
1 parent b9c0e61 commit 87000cc0256e02acc51bfdde4fa138c8dd3f7ed4
Showing with 57 additions and 1,095 deletions.
  1. +3 −3 src/ContentLoader.js
  2. +1 −1 stories/index.js
  3. +53 −1,091 yarn.lock
View
@@ -30,7 +30,7 @@ export default {
type: String,
default: '#ecebeb'
},
uniquekey: {
uniqueKey: {
type: String
},
animate: {
@@ -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
View
@@ -109,7 +109,7 @@ storiesOf('ContentLoader', module)
render() {
return (
<Container>
<ContentLoader uniquekey="unique-key" />
<ContentLoader uniqueKey="unique-key" />
</Container>
)
}
Oops, something went wrong.

0 comments on commit 87000cc

Please sign in to comment.