upgrade web to nextjs 16
This commit is contained in:
parent
728ca5569d
commit
b6fa2f0d17
7 changed files with 394 additions and 81 deletions
|
|
@ -1749,7 +1749,7 @@ export const getOptionTableSnapshot = (
|
|||
};
|
||||
|
||||
type ListScrollState = {
|
||||
listRef: React.RefObject<HTMLDivElement>;
|
||||
listRef: React.RefObject<HTMLDivElement | null>;
|
||||
listNode: HTMLDivElement | null;
|
||||
setListRef: (node: HTMLDivElement | null) => void;
|
||||
isAtTop: boolean;
|
||||
|
|
@ -1854,7 +1854,7 @@ const useListScroll = (): ListScrollState => {
|
|||
};
|
||||
|
||||
const useScrollAnchor = (
|
||||
listRef: React.RefObject<HTMLDivElement>,
|
||||
listRef: React.RefObject<HTMLDivElement | null>,
|
||||
isAtTopRef: React.MutableRefObject<boolean>
|
||||
) => {
|
||||
const pendingRef = useRef<{
|
||||
|
|
@ -1996,7 +1996,7 @@ type TapeVirtualRow<T> = {
|
|||
|
||||
const useTapeVirtualList = <T extends SortableItem>(
|
||||
items: T[],
|
||||
listRef: React.RefObject<HTMLDivElement>,
|
||||
listRef: React.RefObject<HTMLDivElement | null>,
|
||||
config: TapeVirtualListConfig
|
||||
): TapeVirtualListResult<T> => {
|
||||
const virtualizer = useVirtualizer<HTMLDivElement, HTMLElement>({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue