From c1943181257e39f8b31fc020c0ee857a037df23f Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Thu, 20 Jul 2023 17:30:36 -0700 Subject: [PATCH] Lint --- src/app/(drift)/(auth)/components/index.tsx | 8 ++++---- src/app/(drift)/(posts)/post/[id]/page.tsx | 2 +- src/app/(drift)/admin/page.tsx | 4 ++-- src/app/components/header/index.tsx | 10 +++++----- src/app/components/post-list/index.tsx | 2 +- src/lib/server/prisma.ts | 5 +---- 6 files changed, 14 insertions(+), 17 deletions(-) diff --git a/src/app/(drift)/(auth)/components/index.tsx b/src/app/(drift)/(auth)/components/index.tsx index 1631c62f..c9a4e5ab 100644 --- a/src/app/(drift)/(auth)/components/index.tsx +++ b/src/app/(drift)/(auth)/components/index.tsx @@ -133,7 +133,7 @@ function Auth({ {authProviders?.length ? ( <>
-

+

Or sign {signText.toLowerCase()} with one of the following

{authProviders?.map((provider) => { @@ -187,10 +187,10 @@ export default Auth const getProviderIcon = (provider: string) => { switch (provider) { case "github": - return + return case "keycloak": - return + return default: - return + return } } diff --git a/src/app/(drift)/(posts)/post/[id]/page.tsx b/src/app/(drift)/(posts)/post/[id]/page.tsx index a238386a..873afcf3 100644 --- a/src/app/(drift)/(posts)/post/[id]/page.tsx +++ b/src/app/(drift)/(posts)/post/[id]/page.tsx @@ -21,7 +21,7 @@ export default async function PostPage({ return ( <> -
+
Admin -

Users

+

Users

{/* @ts-expect-error Type 'unknown' is not assignable to type */} -

Posts

+

Posts

diff --git a/src/app/components/header/index.tsx b/src/app/components/header/index.tsx index defedaff..092aff43 100644 --- a/src/app/components/header/index.tsx +++ b/src/app/components/header/index.tsx @@ -25,9 +25,9 @@ export default function Header() { }, []) return ( -
- - +
+ + - Drift + Drift