Skip to content

Commit 52c14c1

Browse files
author
Kubit
committed
Fix eslint errors
1 parent 07a7309 commit 52c14c1

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/components/header/hook/useHeaderShadow.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,9 @@ type HeaderShadowReturnValues = {
1717
export const useHeaderShadow = ({ ref, shadow }: HeaderShadowProps): HeaderShadowReturnValues => {
1818
const headerRef = useRef<HTMLElement | null>(null);
1919

20-
useImperativeHandle(
21-
ref,
22-
() => {
23-
return headerRef?.current as HTMLDivElement;
24-
},
25-
[]
26-
);
20+
useImperativeHandle(ref, () => {
21+
return headerRef?.current as HTMLDivElement;
22+
}, []);
2723

2824
useEffect(() => {
2925
if (!headerRef.current) {

0 commit comments

Comments
 (0)