Skip to content

Commit 9faa4c1

Browse files
committed
fix: lint error
1 parent 7964978 commit 9faa4c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stories/helpers/use-current-width.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useEffect, useRef, useState } from 'react'
22

33
const useCurrentWidth = <ElementType extends HTMLElement>() => {
4-
const ref = useRef({ clientWidth: 0 } as ElementType)
4+
const ref = useRef<ElementType>({ clientWidth: 0 } as any)
55
const [width, setWidth] = useState(0)
66

77
useEffect(() => {

0 commit comments

Comments
 (0)