Remove unused params

This commit is contained in:
Max Leiter 2023-01-13 00:08:23 -08:00
parent 5b7efc8a06
commit 7c8e2c9947
3 changed files with 11 additions and 8 deletions

View file

@ -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}
/>
</>
)
}

View file

@ -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

View file

@ -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<ServerPostWithFiles[]> => {
const posts = await prisma.post.findMany({