Skip to content

Commit 15611e3

Browse files
authored
Merge pull request #308 from cherylpinto/feature/issue-#297
Prevent Live Activity toast from auto-disappearing after 30s
2 parents d6fc01b + 11b53f5 commit 15611e3

File tree

3 files changed

+1060
-428
lines changed

3 files changed

+1060
-428
lines changed

src/components/FloatingContributors/index.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,6 @@ const FloatingContributors: React.FC<FloatingContributorsProps> = ({ headerEmbed
182182
return () => clearInterval(interval);
183183
}, [activities.length]);
184184

185-
// Auto-hide after some time
186-
useEffect(() => {
187-
const timer = setTimeout(() => {
188-
setIsVisible(false);
189-
}, 30000); // Hide after 30 seconds
190-
191-
return () => clearTimeout(timer);
192-
}, []);
193185

194186
const generateRandomTimeAgo = (): string => {
195187
const timeOptions = [

0 commit comments

Comments
 (0)