Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reduce the view for user edit #810

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading