Skip to content

Commit

Permalink
Remove node type
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura committed Dec 23, 2024
1 parent ee063e8 commit 0af242e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/ui-next/src/components/primitives/scroll-area.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ const ScrollArea = React.forwardRef<
// If the scrollbar is not hidden, it remains visible for 500ms before fading out
const [opacity, setOpacity] = React.useState<number>(0);
const [hidden, setHidden] = React.useState<boolean>(true);
const opacityTimeout = React.useRef<NodeJS.Timeout | null>(null);
const hiddenTimeout = React.useRef<NodeJS.Timeout | null>(null);
const opacityTimeout = React.useRef<ReturnType<typeof setTimeout> | null>(
null,
);
const hiddenTimeout = React.useRef<ReturnType<typeof setTimeout> | null>(
null,
);

// Set visible each time the scrollbar is used
const onScrollCapture = React.useCallback(() => {
Expand Down

0 comments on commit 0af242e

Please sign in to comment.