Skip to content

Commit

Permalink
fix: reduce the view for user edit (#810)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludtkemorgan authored Nov 15, 2024
1 parent 6925eb5 commit 843fbc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions sites/partners/src/lib/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ type UseListingsDataProps = PaginationProps & {
sort?: ColumnOrder[]
roles?: UserRole
userJurisidctionIds?: string[]
view?: ListingViews
}

export function useSingleListingData(listingId: string) {
Expand All @@ -73,6 +74,7 @@ export function useListingsData({
sort,
roles,
userJurisidctionIds,
view,
}: UseListingsDataProps) {
const params = {
page,
Expand Down
3 changes: 2 additions & 1 deletion sites/partners/src/pages/users/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Head from "next/head"
import dayjs from "dayjs"
import { useSWRConfig } from "swr"
import { AgTable, useAgTable, t, AlertBox } from "@bloom-housing/ui-components"
import { User } from "@bloom-housing/shared-helpers/src/types/backend-swagger"
import { ListingViews, User } from "@bloom-housing/shared-helpers/src/types/backend-swagger"
import { Button, Icon } from "@bloom-housing/ui-seeds"
import { AuthContext } from "@bloom-housing/shared-helpers"
import Layout from "../../layouts"
Expand Down Expand Up @@ -113,6 +113,7 @@ const Users = () => {

const { listingDtos } = useListingsData({
limit: "all",
view: ListingViews.fundamentals,
})

if (error) return <div>{t("t.errorOccurred")}</div>
Expand Down

0 comments on commit 843fbc1

Please sign in to comment.