Skip to content

Commit

Permalink
chore: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Oct 10, 2023
1 parent 7c7fb3c commit 2f3f16f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/VirtualTable/BodyGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ const Grid = React.forwardRef<GridRef, GridProps>((props, ref) => {
React.useImperativeHandle(ref, () => {
const obj = {
scrollTo: (config: ScrollConfig) => {
console.log('!!!!', config);
listRef.current?.scrollTo(config);
},
} as unknown as GridRef;
Expand Down
4 changes: 2 additions & 2 deletions src/VirtualTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ export type ForwardGenericVirtualTable = (<RecordType>(
displayName?: string;
};

const RefVirtualTable = React.forwardRef(Table) as ForwardGenericVirtualTable;
const RefVirtualTable = React.forwardRef(VirtualTable) as ForwardGenericVirtualTable;

if (process.env.NODE_ENV !== 'production') {
RefVirtualTable.displayName = 'VirtualTable';
}

export function genVirtualTable(shouldTriggerRender?: CompareProps<typeof Table>) {
return makeImmutable(VirtualTable, shouldTriggerRender) as ForwardGenericVirtualTable;
return makeImmutable(RefVirtualTable, shouldTriggerRender) as ForwardGenericVirtualTable;
}

export default genVirtualTable();

0 comments on commit 2f3f16f

Please sign in to comment.