Skip to content

Commit

Permalink
fix timeout ref type
Browse files Browse the repository at this point in the history
andreymikhadyuk committed Sep 26, 2023
1 parent 487e5cf commit dece8a0
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/common/components/FeedCard/FeedCard.tsx
Original file line number Diff line number Diff line change
@@ -84,7 +84,7 @@ export const FeedCard = forwardRef<FeedCardRef, FeedCardProps>((props, ref) => {
hasImages,
hasFiles,
} = props;
const scrollTimeoutRef = useRef<NodeJS.Timeout | null>(null);
const scrollTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
const isTabletView = useIsTabletView();
const { setExpandedFeedItemId, renderFeedItemBaseContent, feedCardSettings } =
useFeedItemContext();
2 changes: 1 addition & 1 deletion src/shared/ui-kit/Loader/Loader.tsx
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ const Loader: FC<LoaderProps> = (props) => {
color = LoaderColor.Default,
delay,
} = props;
const timeoutRef = useRef<NodeJS.Timeout | null>(null);
const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
const [isShowing, setIsShowing] = useState(!delay);
const loaderEl = (
<img

0 comments on commit dece8a0

Please sign in to comment.