mirror of
https://github.com/documenso/documenso.git
synced 2026-08-25 15:52:29 +10:00
fix: lint project (#2693)
This commit is contained in:
@@ -9,10 +9,7 @@ import { type RefObject, useEffect } from 'react';
|
||||
* This is the communication bridge between field validation logic (which knows
|
||||
* which page to scroll to) and the virtual list (which knows how to scroll).
|
||||
*/
|
||||
export const useScrollToPage = (
|
||||
contentRef: RefObject<HTMLElement | null>,
|
||||
scrollToItem: (index: number) => void,
|
||||
) => {
|
||||
export const useScrollToPage = (contentRef: RefObject<HTMLElement | null>, scrollToItem: (index: number) => void) => {
|
||||
useEffect(() => {
|
||||
const el = contentRef.current;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user