Skip to content

Commit 7640cdb

Browse files
author
Pavlo Shepitchak
committed
rename
1 parent 7d695bf commit 7640cdb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function isReactFragment(openingElement) {
1010
)
1111
}
1212

13-
function applyDataAttribute({ openingElement, t, name, options }) {
13+
function applyAttribute({ openingElement, t, name, options }) {
1414
if (!openingElement || isReactFragment(openingElement)) return
1515

1616
const isAttributeAlreadySet = openingElement.node.attributes.find(
@@ -48,7 +48,7 @@ function functionBodyPushAttributes(t, path, options, componentName) {
4848
openingElement = arg.get('openingElement')
4949
}
5050

51-
applyDataAttribute({ openingElement, t, name: componentName, options })
51+
applyAttribute({ openingElement, t, name: componentName, options })
5252
}
5353

5454
export default function({ types: t }) {
@@ -94,7 +94,7 @@ export default function({ types: t }) {
9494

9595
const openingElement = arg.get('openingElement')
9696

97-
applyDataAttribute({
97+
applyAttribute({
9898
openingElement,
9999
t,
100100
name: name.node && name.node.name,

0 commit comments

Comments
 (0)