Mirror of
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix buggy exit test mode by removing animation

-15
-15
src/components/test-mode/exit-test-mode.tsx
··· 35 35 toast("Successfully exited test mode."); 36 36 }; 37 37 38 - React.useEffect(() => { 39 - const updateData = () => { 40 - const newData = data.map((item) => ({ 41 - value: Math.floor(Math.random() * 400) + 100, 42 - })); 43 - setData(newData); 44 - }; 45 - 46 - const interval = setInterval(() => { 47 - updateData(); 48 - }, 2690); // Update data every 2 seconds 49 - 50 - return () => clearInterval(interval); // Cleanup interval on component unmount 51 - }, [data]); 52 - 53 38 return ( 54 39 <Drawer> 55 40 <DrawerTrigger asChild>