File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/main/src/components/AnalyticalTable Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- import type { RefObject } from 'react' ;
1+ import type { MutableRefObject } from 'react' ;
22import { useEffect , useRef , useState } from 'react' ;
33
4- export function useSyncScroll ( refContent : RefObject < HTMLElement > , refScrollbar : RefObject < HTMLElement > ) {
4+ export function useSyncScroll ( refContent : MutableRefObject < HTMLElement > , refScrollbar : MutableRefObject < HTMLElement > ) {
55 const ticking = useRef ( false ) ;
66 const isProgrammatic = useRef ( false ) ;
77 const [ isMounted , setIsMounted ] = useState ( false ) ;
Original file line number Diff line number Diff line change 11import { clsx } from 'clsx' ;
2- import type { MutableRefObject , RefObject } from 'react' ;
2+ import type { MutableRefObject } from 'react' ;
33import { forwardRef } from 'react' ;
44import { FlexBoxDirection } from '../../../enums/FlexBoxDirection.js' ;
55import { FlexBox } from '../../FlexBox/index.js' ;
66import type { ClassNames } from '../types/index.js' ;
77
88interface VerticalScrollbarProps {
99 internalRowHeight : number ;
10- tableRef : RefObject < any > ;
10+ tableRef : MutableRefObject < HTMLDivElement > ;
1111 tableBodyHeight : number ;
1212 scrollContainerRef : MutableRefObject < HTMLDivElement > ;
1313 nativeScrollbar : boolean ;
You can’t perform that action at this time.
0 commit comments