From 7c8e2c9947dcc7ef3bdf8d941adc9016909537c5 Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Fri, 13 Jan 2023 00:08:23 -0800 Subject: [PATCH] Remove unused params --- src/app/components/badges/visibility-control/index.tsx | 7 +++++-- src/app/components/fade-in/index.tsx | 6 +++++- src/lib/server/prisma.ts | 6 +----- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/app/components/badges/visibility-control/index.tsx b/src/app/components/badges/visibility-control/index.tsx index 3d0e1f8a..2969ef32 100644 --- a/src/app/components/badges/visibility-control/index.tsx +++ b/src/app/components/badges/visibility-control/index.tsx @@ -17,7 +17,9 @@ type Props = { } function VisibilityControl({ - authorId, postId, visibility: postVisibility + authorId, + postId, + visibility: postVisibility }: Props) { const { session } = useSessionSWR() const isAuthor = session?.user && session?.user?.id === authorId @@ -124,7 +126,8 @@ function VisibilityControl({ creating={true} isOpen={passwordModalVisible} onClose={onClosePasswordModal} - onSubmit={submitPassword} /> + onSubmit={submitPassword} + /> ) } diff --git a/src/app/components/fade-in/index.tsx b/src/app/components/fade-in/index.tsx index 44a0c00b..355e83fe 100644 --- a/src/app/components/fade-in/index.tsx +++ b/src/app/components/fade-in/index.tsx @@ -2,7 +2,11 @@ import styles from "./fade.module.css" function FadeIn({ - duration = 300, delay = 0, children, as, ...delegated + duration = 300, + delay = 0, + children, + as, + ...delegated }: { duration?: number delay?: number diff --git a/src/lib/server/prisma.ts b/src/lib/server/prisma.ts index c249b2b2..41f19932 100644 --- a/src/lib/server/prisma.ts +++ b/src/lib/server/prisma.ts @@ -245,13 +245,9 @@ export const getAllUsers = async ( export const searchPosts = async ( query: string, { - withFiles = false, - userId, - publicOnly + userId }: { - withFiles?: boolean userId?: User["id"] - publicOnly?: boolean } = {} ): Promise => { const posts = await prisma.post.findMany({