Skip to content

Commit

Permalink
fix: show all the collections in the dropdown on the Report page
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman committed Jan 3, 2024
1 parent 6efe9f5 commit f55ab69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import { showNotificationError, showNotificationSuccess } from '@pubkey-link/web
import { useQuery } from '@tanstack/react-query'
import { useState } from 'react'

export function useAdminFindManyCollection() {
export function useAdminFindManyCollection(props?: Partial<AdminFindManyCollectionInput>) {
const sdk = useWebSdk()
const [network, setNetwork] = useState<NetworkType | undefined>(undefined)

const [limit, setLimit] = useState(10)
const [limit, setLimit] = useState(props?.limit ?? 10)
const [page, setPage] = useState(1)
const [search, setSearch] = useState<string>('')

Expand Down
2 changes: 1 addition & 1 deletion libs/web/report/feature/src/lib/web-admin-report-index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useState } from 'react'

export function WebAdminReportIndex() {
const { serverOptions, items } = useAdminFindManyDiscordServer({ input: {} })
const { collectionOptions } = useAdminFindManyCollection()
const { collectionOptions } = useAdminFindManyCollection({ limit: 50 })
const [server, setServer] = useState<DiscordServer | undefined>(undefined)
const [report, setReport] = useState<string | undefined>()
const [collectionAccount, setCollectionAccount] = useState<string | undefined>()
Expand Down

0 comments on commit f55ab69

Please sign in to comment.