From 843fbc1c85727cc9972137ac6979e9060707d2ca Mon Sep 17 00:00:00 2001 From: Morgan Ludtke <42942267+ludtkemorgan@users.noreply.github.com> Date: Fri, 15 Nov 2024 16:19:39 -0600 Subject: [PATCH] fix: reduce the view for user edit (#810) --- sites/partners/src/lib/hooks.ts | 2 ++ sites/partners/src/pages/users/index.tsx | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sites/partners/src/lib/hooks.ts b/sites/partners/src/lib/hooks.ts index 3ac8b268f3..2709fa6931 100644 --- a/sites/partners/src/lib/hooks.ts +++ b/sites/partners/src/lib/hooks.ts @@ -50,6 +50,7 @@ type UseListingsDataProps = PaginationProps & { sort?: ColumnOrder[] roles?: UserRole userJurisidctionIds?: string[] + view?: ListingViews } export function useSingleListingData(listingId: string) { @@ -73,6 +74,7 @@ export function useListingsData({ sort, roles, userJurisidctionIds, + view, }: UseListingsDataProps) { const params = { page, diff --git a/sites/partners/src/pages/users/index.tsx b/sites/partners/src/pages/users/index.tsx index 5c58c37d0c..af97d642f2 100644 --- a/sites/partners/src/pages/users/index.tsx +++ b/sites/partners/src/pages/users/index.tsx @@ -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" @@ -113,6 +113,7 @@ const Users = () => { const { listingDtos } = useListingsData({ limit: "all", + view: ListingViews.fundamentals, }) if (error) return
{t("t.errorOccurred")}