Skip to content

Commit

Permalink
Reverted scroll wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasbordeau committed Aug 12, 2024
1 parent 8cb2f3b commit 411ac52
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { Checkbox, CheckboxVariant } from '@/ui/input/components/Checkbox';
import { contextMenuIsOpenState } from '@/ui/navigation/context-menu/states/contextMenuIsOpenState';
import { contextMenuPositionState } from '@/ui/navigation/context-menu/states/contextMenuPositionState';
import { AnimatedEaseInOut } from '@/ui/utilities/animation/components/AnimatedEaseInOut';
import { ScrollWrapperContext } from '@/ui/utilities/scroll/components/ScrollWrapper';

const StyledBoardCard = styled.div<{ selected: boolean }>`
background-color: ${({ theme, selected }) =>
Expand Down Expand Up @@ -198,7 +199,10 @@ export const RecordBoardCard = () => {
return [updateEntity, { loading: false }];
};

const scrollWrapperRef = useContext(ScrollWrapperContext);

const { ref: cardRef, inView } = useInView({
root: scrollWrapperRef.current,
rootMargin: '1000px',
});

Expand Down

0 comments on commit 411ac52

Please sign in to comment.