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({