Skip to content

Commit 2b7953c

Browse files
dgreifsmockle
andauthored
refactor: use correct type for react css properties
Co-authored-by: Clay Miller <[email protected]>
1 parent 8374dd5 commit 2b7953c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Overlay.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ const Overlay = React.forwardRef<HTMLDivElement, OverlayProps>(
161161
'--slide-animation-y-factor': slideAnimationFactors.y,
162162
'--slide-animation-timing':
163163
slideAnimationFactors.x === 0 && slideAnimationFactors.y === 0 ? '0' : undefined // 0 if we don't want to animate, fallback in css if we do
164-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
165-
} as any
164+
} as React.CSSProperties
166165
}
167166
/>
168167
</Portal>

0 commit comments

Comments
 (0)