From 216d5c4f9e36d7a87b6c686ae42d2f5337a38b78 Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Mon, 16 Feb 2026 21:29:11 +0100 Subject: [PATCH] added timestamp to feed --- frontend/src/pages/MainPage.tsx | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/frontend/src/pages/MainPage.tsx b/frontend/src/pages/MainPage.tsx index 911780d..bfcdf21 100644 --- a/frontend/src/pages/MainPage.tsx +++ b/frontend/src/pages/MainPage.tsx @@ -240,15 +240,20 @@ const MainPage: React.FC = () => { {feedRatings.map(rating => ( - - - - {!rating.user_avatar && rating.user.charAt(0).toUpperCase()} - - {rating.user} - - rated - + + + + {!rating.user_avatar && rating.user.charAt(0).toUpperCase()} + + {rating.user} + + rated + + + {new Date(rating.created_at).toLocaleDateString()} + + + { - on {review.flavor_name} + {new Date(review.created_at).toLocaleDateString()} • on {review.flavor_name} "{review.comment}"