Skip to content

Commit

Permalink
Remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
JBWatenbergScality committed Aug 6, 2024
1 parent d3bc4f6 commit 5712d52
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions src/lib/components/tablev2/SingleSelectableContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,6 @@ export function SingleSelectableContent<
const { hasScrollbar, scrollBarWidth, handleScrollbarWidth } =
useTableScrollbar();

console.log('hasScrollbar', {
hasScrollbar,
scrollBarWidth,
handleScrollbarWidth,
});

return (
<>
<div className="thead" role="rowgroup">
Expand Down
4 changes: 0 additions & 4 deletions src/lib/components/tablev2/useSyncedScroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,17 @@ export default function useSyncedScroll<

const headerRef = useCallback(
(element: HTMLDivElement) => {
console.log('elementaire', element);
if (element) {
const callback = (event: Event) => {
if (element && event) {
console.log('element', element);
element.scrollTo({
left: (event.target as HTMLDivElement).scrollLeft,
top: 0,
});
}
};
if (!syncScrollListener) {
console.log('setSyncScrollListener', setSyncScrollListener);
setSyncScrollListener(() => {
console.log('callback', callback);
return callback;
});
}
Expand Down

0 comments on commit 5712d52

Please sign in to comment.