From 46aa5c3c0cff6e39f0982044fd5cfdfed48e239a Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Tue, 10 Dec 2024 20:06:52 +0100 Subject: [PATCH] fix: remove React.FC type for server-side rendered components --- app/(root)/changelog/page.tsx | 2 +- app/(root)/downloads/page.tsx | 2 +- app/(root)/mods/page.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/(root)/changelog/page.tsx b/app/(root)/changelog/page.tsx index c6d7f8b..93b34c6 100644 --- a/app/(root)/changelog/page.tsx +++ b/app/(root)/changelog/page.tsx @@ -18,7 +18,7 @@ interface LOGS { export const dynamic = "force-static"; -const LogsPage: React.FC = async () => { +const LogsPage = async () => { let error: Error | null = null; let downloads: LOGS[] = []; diff --git a/app/(root)/downloads/page.tsx b/app/(root)/downloads/page.tsx index 981f762..ce6c2cb 100644 --- a/app/(root)/downloads/page.tsx +++ b/app/(root)/downloads/page.tsx @@ -23,7 +23,7 @@ interface Download { export const dynamic = "force-static"; -const DownloadPage: React.FC = async () => { +const DownloadPage = async () => { let error: Error | null = null; let downloads: Download[] = []; diff --git a/app/(root)/mods/page.tsx b/app/(root)/mods/page.tsx index 1c91329..2361150 100644 --- a/app/(root)/mods/page.tsx +++ b/app/(root)/mods/page.tsx @@ -23,7 +23,7 @@ interface Mods { export const dynamic = "force-static"; -const ModsPage: React.FC = async () => { +const ModsPage = async () => { let error: Error | null = null; let downloads: Mods[] = [];