Skip to content

Commit 17d97ba

Browse files
committed
chore: run prettier
1 parent c389b15 commit 17d97ba

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.changeset/animated-className.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
---
2-
'@react-spring/web': patch
3-
---
4-
5-
fix: recognize `className` prop to `AnimatedComponent`s
1+
---
2+
'@react-spring/web': patch
3+
---
4+
5+
fix: recognize `className` prop to `AnimatedComponent`s

targets/web/src/applyAnimatedValues.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,15 @@ export function applyAnimatedValues(instance: Instance, props: Lookup) {
3030
instance.nodeName === 'filter' ||
3131
(instance.parentNode && instance.parentNode.nodeName === 'filter')
3232

33-
const { className, style, children, scrollTop, scrollLeft, viewBox, ...attributes } =
34-
props!
33+
const {
34+
className,
35+
style,
36+
children,
37+
scrollTop,
38+
scrollLeft,
39+
viewBox,
40+
...attributes
41+
} = props!
3542

3643
const values = Object.values(attributes)
3744
const names = Object.keys(attributes).map(name =>

0 commit comments

Comments
 (0)