From 9e4215a84d6f8d0cdb00db4208cb697a58b1b17d Mon Sep 17 00:00:00 2001 From: Z8MB1E Date: Wed, 17 Dec 2025 15:28:43 -0500 Subject: [PATCH] refactor: rename Page component to DashboardPage, update metadata type, and fix optional chaining in resource mapping --- src/app/(frontend)/dashboard/page.tsx | 38 +------------------ src/app/(frontend)/layout.tsx | 3 +- src/app/(frontend)/logistics/storage/page.tsx | 2 +- 3 files changed, 5 insertions(+), 38 deletions(-) diff --git a/src/app/(frontend)/dashboard/page.tsx b/src/app/(frontend)/dashboard/page.tsx index 85418dc..61c0faf 100644 --- a/src/app/(frontend)/dashboard/page.tsx +++ b/src/app/(frontend)/dashboard/page.tsx @@ -14,42 +14,8 @@ import { SidebarTrigger, } from "@/components/ui/sidebar" -export default function Page() { +export default function DashboardPage() { return ( - - - -
-
- - - - - - - Building Your Application - - - - - Data Fetching - - - -
-
-
-
-
-
-
-
-
-
- - +
test
) } diff --git a/src/app/(frontend)/layout.tsx b/src/app/(frontend)/layout.tsx index 24762c3..0a4b327 100644 --- a/src/app/(frontend)/layout.tsx +++ b/src/app/(frontend)/layout.tsx @@ -6,8 +6,9 @@ import { getPayload } from "payload"; import config from "@payload-config"; import { headers as nextHeaders } from "next/headers"; import { SiteHeader } from "@/components/frontend/SiteHeader"; +import { Metadata } from "next"; -export const metadata = { +export const metadata: Metadata = { description: "A gamified platform for Polaris Task Force, an Arma 3 unit.", title: "Polaris Task Force", }; diff --git a/src/app/(frontend)/logistics/storage/page.tsx b/src/app/(frontend)/logistics/storage/page.tsx index 37adc1b..394180a 100644 --- a/src/app/(frontend)/logistics/storage/page.tsx +++ b/src/app/(frontend)/logistics/storage/page.tsx @@ -88,7 +88,7 @@ export default async function LogisticsStoragePage() { key={resource.id} resource={resource} amount={res.amount} - includeSeparator={index !== structure.storedResources?.length - 1} + includeSeparator={index !== structure.storedResources!.length - 1} /> ); })}