From 8058618bbbdf6fd60ff972a476aff0a6b40d5a8c Mon Sep 17 00:00:00 2001 From: "Carlos (Almeira)" Date: Thu, 26 Mar 2026 14:47:15 -0500 Subject: [PATCH] Fix: Remove top date from NewsCard and fix NewsTicker syntax --- src/components/NewsCard.tsx | 5 ----- src/components/NewsTicker.tsx | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/NewsCard.tsx b/src/components/NewsCard.tsx index 10e8ad9..e050326 100644 --- a/src/components/NewsCard.tsx +++ b/src/components/NewsCard.tsx @@ -55,11 +55,6 @@ export const NewsCard = ({ {/* Contenido */}
-
- - {fechaFormateada} -
-

{titulo}

diff --git a/src/components/NewsTicker.tsx b/src/components/NewsTicker.tsx index 056d5ce..4751562 100644 --- a/src/components/NewsTicker.tsx +++ b/src/components/NewsTicker.tsx @@ -20,7 +20,8 @@ export default async function NewsTicker() { // Since 'createSessionClient' uses the session cookie, we might have issues on public incognito pages. // The user previously used Admin API key for everything or a local backdoor. - // Settings const settingsRes = await client.databases.listDocuments(APPWRITE_ALMEIRA_CONFIG.databaseId, 'settings', []); + // Settings + const settingsRes = await client.databases.listDocuments(APPWRITE_ALMEIRA_CONFIG.databaseId, 'settings', []); const settings: any = settingsRes.documents.length > 0 ? settingsRes.documents[0] : {}; const tickerCount = settings.ticker_count || 10;