refactor: enhance announcements functionality to include expired announcements in hooks and components

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-07-16 20:03:09 -07:00
parent 7bc02ce55b
commit 7af4bc0b49
5 changed files with 55 additions and 32 deletions

View file

@ -10,7 +10,7 @@ import { useAnnouncements } from "@/hooks/use-announcements";
// ---------------------------------------------------------------------------
export default function AnnouncementsPage() {
const { announcements, markAllRead } = useAnnouncements();
const { announcements, markAllRead } = useAnnouncements({ includeExpired: true });
// Auto-mark all visible announcements as read when the page is opened
useEffect(() => {