From 48addde450650c5b0858e02c94749bf981a5f2fe Mon Sep 17 00:00:00 2001 From: Hampus Hallkvist Date: Sun, 10 Mar 2024 18:22:31 +0100 Subject: [PATCH] fix: Convert to next links and remove redundant query --- src/app/exhibitor/packages/page.tsx | 17 +++++------------ src/app/exhibitor/page.tsx | 9 +++++---- src/app/page.tsx | 4 ++-- 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/src/app/exhibitor/packages/page.tsx b/src/app/exhibitor/packages/page.tsx index c4766ae..ff7e751 100644 --- a/src/app/exhibitor/packages/page.tsx +++ b/src/app/exhibitor/packages/page.tsx @@ -1,5 +1,4 @@ import { Page } from "@/components/shared/Page" -import { fetchDates } from "@/components/shared/hooks/api/useDates" import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert" import { Button } from "@/components/ui/button" import { @@ -8,8 +7,8 @@ import { CollapsibleTrigger } from "@/components/ui/collapsible" import { ChevronsUpDown, Sparkles } from "lucide-react" -import { DateTime } from "luxon" import { Metadata } from "next" +import Link from "next/link" export const metadata: Metadata = { title: `Packages - Armada Exhibitor`, @@ -18,12 +17,6 @@ export const metadata: Metadata = { } export default async function Packages() { - function formatDate(date: string) { - return DateTime.fromISO(date).toFormat( - `d MMMM ${DateTime.fromISO(date).year !== DateTime.now().year ? " YYYY" : ""}` - ) - } - const dates = await fetchDates() return ( @@ -149,17 +142,17 @@ export default async function Packages() {

You can sign up here:

- + - +

If you have any questions, you can contact us at{" "} - sales@armada.nu - + .

diff --git a/src/app/exhibitor/page.tsx b/src/app/exhibitor/page.tsx index 090d773..9a85943 100644 --- a/src/app/exhibitor/page.tsx +++ b/src/app/exhibitor/page.tsx @@ -3,6 +3,7 @@ import { PhotoCarousel } from "@/app/exhibitor/_components/PhotoCarousel" import { Page } from "@/components/shared/Page" import { Button } from "@/components/ui/button" import { Metadata } from "next" +import Link from "next/link" export const metadata: Metadata = { title: `Become an exhibitor at Armada` @@ -42,16 +43,16 @@ export default function ForExhibitorsPage() { - + - - + + - +

Or{" "} diff --git a/src/app/page.tsx b/src/app/page.tsx index 9307765..ba62de6 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -40,14 +40,14 @@ export default async function HomePage() { - + - +