Skip to content

Commit 87000cc

Browse files
committed
fix uniqueKey
1 parent b9c0e61 commit 87000cc

File tree

3 files changed

+57
-1095
lines changed

3 files changed

+57
-1095
lines changed

src/ContentLoader.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default {
3030
type: String,
3131
default: '#ecebeb'
3232
},
33-
uniquekey: {
33+
uniqueKey: {
3434
type: String
3535
},
3636
animate: {
@@ -40,8 +40,8 @@ export default {
4040
},
4141

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

4646
return (
4747
<svg

stories/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ storiesOf('ContentLoader', module)
109109
render() {
110110
return (
111111
<Container>
112-
<ContentLoader uniquekey="unique-key" />
112+
<ContentLoader uniqueKey="unique-key" />
113113
</Container>
114114
)
115115
}

0 commit comments

Comments
 (0)