4c0bd80f24
* build: add linter to loot-design package * style: automated fixes * style: manual linter fixes
15 lines
294 B
JavaScript
15 lines
294 B
JavaScript
import { useEffect, useRef } from 'react';
|
|
|
|
export function useScrollFlasher() {
|
|
let scrollRef = useRef(null);
|
|
|
|
useEffect(() => {
|
|
setTimeout(() => {
|
|
if (scrollRef.current) {
|
|
scrollRef.current.flashScrollIndicators();
|
|
}
|
|
}, 1000);
|
|
}, []);
|
|
|
|
return scrollRef;
|
|
}
|