From 735d1e22414c39b5c0c911633914f14fe945aac4 Mon Sep 17 00:00:00 2001 From: Alma Date: Sun, 13 Apr 2025 11:48:21 +0200 Subject: [PATCH] widgets email and news 3 --- app/page.tsx | 6 +++--- components/email.tsx | 14 +++++++------- components/news.tsx | 12 ++++++------ 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index 4954a54f..3694f3c1 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -9,9 +9,9 @@ import { Parole } from "@/components/parole"; export default function Home() { return ( -
+
{/* First row */} -
+
@@ -27,7 +27,7 @@ export default function Home() {
{/* Second row */} -
+
diff --git a/components/email.tsx b/components/email.tsx index 29891a96..5bef9213 100644 --- a/components/email.tsx +++ b/components/email.tsx @@ -100,24 +100,24 @@ export function Email() { - + {error ? (

{error}

) : ( -
+
{emails.length === 0 ? (

No emails available

) : ( emails.map((email) => (
-
- {email.sender.name} -
+
+ {email.sender.name} +
{email.isUnread && ( - + )} {email.date}
diff --git a/components/news.tsx b/components/news.tsx index bcef357e..e51ef7b5 100644 --- a/components/news.tsx +++ b/components/news.tsx @@ -78,22 +78,22 @@ export function News() { - + {error ? (

{error}

) : ( -
+
{news.length === 0 ? (

No news available

) : ( news.map((item) => (
-
- {item.date} - +
+ {item.date} + {item.category}