mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-24 23:41:10 +02:00
refactor: enhance announcements functionality to include expired announcements in hooks and components
This commit is contained in:
parent
7bc02ce55b
commit
7af4bc0b49
5 changed files with 55 additions and 32 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue