Remove unused params
This commit is contained in:
parent
5b7efc8a06
commit
7c8e2c9947
3 changed files with 11 additions and 8 deletions
|
@ -17,7 +17,9 @@ type Props = {
|
||||||
}
|
}
|
||||||
|
|
||||||
function VisibilityControl({
|
function VisibilityControl({
|
||||||
authorId, postId, visibility: postVisibility
|
authorId,
|
||||||
|
postId,
|
||||||
|
visibility: postVisibility
|
||||||
}: Props) {
|
}: Props) {
|
||||||
const { session } = useSessionSWR()
|
const { session } = useSessionSWR()
|
||||||
const isAuthor = session?.user && session?.user?.id === authorId
|
const isAuthor = session?.user && session?.user?.id === authorId
|
||||||
|
@ -124,7 +126,8 @@ function VisibilityControl({
|
||||||
creating={true}
|
creating={true}
|
||||||
isOpen={passwordModalVisible}
|
isOpen={passwordModalVisible}
|
||||||
onClose={onClosePasswordModal}
|
onClose={onClosePasswordModal}
|
||||||
onSubmit={submitPassword} />
|
onSubmit={submitPassword}
|
||||||
|
/>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,11 @@
|
||||||
import styles from "./fade.module.css"
|
import styles from "./fade.module.css"
|
||||||
|
|
||||||
function FadeIn({
|
function FadeIn({
|
||||||
duration = 300, delay = 0, children, as, ...delegated
|
duration = 300,
|
||||||
|
delay = 0,
|
||||||
|
children,
|
||||||
|
as,
|
||||||
|
...delegated
|
||||||
}: {
|
}: {
|
||||||
duration?: number
|
duration?: number
|
||||||
delay?: number
|
delay?: number
|
||||||
|
|
|
@ -245,13 +245,9 @@ export const getAllUsers = async (
|
||||||
export const searchPosts = async (
|
export const searchPosts = async (
|
||||||
query: string,
|
query: string,
|
||||||
{
|
{
|
||||||
withFiles = false,
|
userId
|
||||||
userId,
|
|
||||||
publicOnly
|
|
||||||
}: {
|
}: {
|
||||||
withFiles?: boolean
|
|
||||||
userId?: User["id"]
|
userId?: User["id"]
|
||||||
publicOnly?: boolean
|
|
||||||
} = {}
|
} = {}
|
||||||
): Promise<ServerPostWithFiles[]> => {
|
): Promise<ServerPostWithFiles[]> => {
|
||||||
const posts = await prisma.post.findMany({
|
const posts = await prisma.post.findMany({
|
||||||
|
|
Loading…
Reference in a new issue