From 1d69230d45e6f50828b53ef630f95c251921abb9 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Wed, 14 Jan 2026 16:05:31 +0000 Subject: [PATCH] table fix --- frontend/src/components/InteractiveBackground.tsx | 2 +- frontend/src/pages/dashboard.tsx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/InteractiveBackground.tsx b/frontend/src/components/InteractiveBackground.tsx index 74adf1a..cab7181 100644 --- a/frontend/src/components/InteractiveBackground.tsx +++ b/frontend/src/components/InteractiveBackground.tsx @@ -46,7 +46,7 @@ const InteractiveBackground = () => { default: 'bounce', }, random: false, - speed: 2, + speed: 0.5, straight: false, }, number: { diff --git a/frontend/src/pages/dashboard.tsx b/frontend/src/pages/dashboard.tsx index 633fd8e..854e214 100644 --- a/frontend/src/pages/dashboard.tsx +++ b/frontend/src/pages/dashboard.tsx @@ -23,7 +23,7 @@ const Dashboard = () => { useEffect(() => { if(hasPermission(currentUser, 'READ_EVENTS')) { - dispatch(fetchEvents({ query: '?sort=createdAt,DESC&limit=5' })); + dispatch(fetchEvents({ query: '?sort=start_datetime,ASC&limit=5' })); } if(hasPermission(currentUser, 'READ_GUESTS')) { dispatch(fetchGuests({ query: '' })); @@ -31,7 +31,7 @@ const Dashboard = () => { }, [dispatch, currentUser]); const upcomingEvents = events.filter( - (event) => new Date(event.date) > new Date() + (event) => new Date(event.start_datetime) > new Date() ); return ( @@ -97,18 +97,18 @@ const Dashboard = () => { {event.name} - {new Date(event.date).toLocaleDateString()} + {new Date(event.start_datetime).toLocaleDateString()} {event.location} - {new Date(event.date) < new Date() ? 'Past' : 'Upcoming'} + {new Date(event.start_datetime) < new Date() ? 'Past' : 'Upcoming'}