From c3966df4d5f427c9da675ee6bef650ed0adfec45 Mon Sep 17 00:00:00 2001 From: Hayden Bleasel Date: Fri, 19 Jul 2024 00:07:39 -0400 Subject: [PATCH] Ultracite unsafe fixes --- actions/subscribe.ts | 2 +- app/(pages)/(home)/cards/announcement.tsx | 6 +++--- app/(pages)/(home)/cards/github.tsx | 2 +- app/(pages)/(home)/cards/spotify.tsx | 6 +++--- app/(pages)/(home)/cards/steam.tsx | 6 +++--- app/(pages)/(home)/components/avatar.tsx | 2 +- app/(pages)/(home)/components/github.tsx | 10 +++++----- app/(pages)/(home)/components/location.tsx | 6 +++--- app/(pages)/(home)/components/newsletter.tsx | 10 +++++----- app/(pages)/(home)/page.tsx | 4 ++-- app/(pages)/blog/[slug]/page.tsx | 6 +++--- app/(pages)/blog/page.tsx | 8 ++++---- app/(pages)/contact/actions/contact.ts | 14 ++----------- .../contact/components/contact-form.tsx | 6 +++--- app/(pages)/contact/page.tsx | 2 +- app/(pages)/features/page.tsx | 8 ++++---- app/(pages)/layout.tsx | 2 +- app/(pages)/stack/page.tsx | 12 +++++------ app/(pages)/work/page.tsx | 10 +++++----- app/about/inline-image.tsx | 4 ++-- app/about/page.tsx | 14 ++++++------- app/api/cron/github/route.ts | 2 -- app/api/cron/spotify/route.ts | 5 ----- app/api/cron/steam/route.ts | 4 ---- app/components/travel.tsx | 2 +- app/layout.tsx | 2 +- components/card.tsx | 8 ++++---- components/form.tsx | 20 +++++++++---------- components/header.tsx | 2 +- components/navbar.tsx | 10 +++++----- components/video.tsx | 2 +- contentlayer.config.ts | 2 +- 32 files changed, 89 insertions(+), 110 deletions(-) diff --git a/actions/subscribe.ts b/actions/subscribe.ts index 6a48e382..b6692a48 100644 --- a/actions/subscribe.ts +++ b/actions/subscribe.ts @@ -11,7 +11,7 @@ if (!audienceId) { } export const subscribe = async ( - prevState: never, + _prevState: never, formData: FormData ): Promise<{ message: string; diff --git a/app/(pages)/(home)/cards/announcement.tsx b/app/(pages)/(home)/cards/announcement.tsx index d3402cc8..5b1949dd 100644 --- a/app/(pages)/(home)/cards/announcement.tsx +++ b/app/(pages)/(home)/cards/announcement.tsx @@ -19,14 +19,14 @@ export const AnnouncementCard = async (): Promise => { title="Latest Update" className="flex flex-col items-start justify-between gap-4 p-4" > -

+

{announcement.text}

diff --git a/app/(pages)/(home)/cards/github.tsx b/app/(pages)/(home)/cards/github.tsx index 17bcd7d9..72cf1254 100644 --- a/app/(pages)/(home)/cards/github.tsx +++ b/app/(pages)/(home)/cards/github.tsx @@ -50,7 +50,7 @@ const GitHubCard: FC = () => { return (
-

+

{total} contributions in the last year

diff --git a/app/(pages)/(home)/cards/spotify.tsx b/app/(pages)/(home)/cards/spotify.tsx index 0d86ad05..fb35fc3f 100644 --- a/app/(pages)/(home)/cards/spotify.tsx +++ b/app/(pages)/(home)/cards/spotify.tsx @@ -15,17 +15,17 @@ const SpotifyCard = async (): Promise => { return ( -

+

{song.name} by {song.artist}

diff --git a/app/(pages)/(home)/cards/steam.tsx b/app/(pages)/(home)/cards/steam.tsx index 0e7ea014..bb7395cb 100644 --- a/app/(pages)/(home)/cards/steam.tsx +++ b/app/(pages)/(home)/cards/steam.tsx @@ -15,9 +15,9 @@ const SteamCard = async (): Promise => { return ( -
+

{game.name} @@ -36,7 +36,7 @@ const SteamCard = async (): Promise => { width={300} height={300} unoptimized - className="rounded m-0 shrink-0" + className="m-0 shrink-0 rounded" /> ); diff --git a/app/(pages)/(home)/components/avatar.tsx b/app/(pages)/(home)/components/avatar.tsx index 2161a651..d7677d6a 100644 --- a/app/(pages)/(home)/components/avatar.tsx +++ b/app/(pages)/(home)/components/avatar.tsx @@ -7,7 +7,7 @@ export const Avatar: FC = () => ( => { return (

=> { {' '} => { {location}{' '}
=> { {' '} { return (