Skip to content

Commit 2814b0a

Browse files
committed
React18 compatible types
1 parent 7946cb1 commit 2814b0a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/main/src/components/AnalyticalTable/hooks/useSyncScroll.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { RefObject } from 'react';
1+
import type { MutableRefObject } from 'react';
22
import { 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);

packages/main/src/components/AnalyticalTable/scrollbars/VerticalScrollbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { clsx } from 'clsx';
2-
import type { MutableRefObject, RefObject } from 'react';
2+
import type { MutableRefObject } from 'react';
33
import { forwardRef } from 'react';
44
import { FlexBoxDirection } from '../../../enums/FlexBoxDirection.js';
55
import { FlexBox } from '../../FlexBox/index.js';
66
import type { ClassNames } from '../types/index.js';
77

88
interface VerticalScrollbarProps {
99
internalRowHeight: number;
10-
tableRef: RefObject<any>;
10+
tableRef: MutableRefObject<HTMLDivElement>;
1111
tableBodyHeight: number;
1212
scrollContainerRef: MutableRefObject<HTMLDivElement>;
1313
nativeScrollbar: boolean;

0 commit comments

Comments
 (0)