From 8fb417303601e2067093265bf3e42da22cb87146 Mon Sep 17 00:00:00 2001 From: Matt Kane Date: Sat, 4 Apr 2026 16:00:27 +0100 Subject: [PATCH] fix: format router.tsx to pass oxfmt check --- packages/admin/src/router.tsx | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/packages/admin/src/router.tsx b/packages/admin/src/router.tsx index 941c78f..c8ffb58 100644 --- a/packages/admin/src/router.tsx +++ b/packages/admin/src/router.tsx @@ -235,25 +235,19 @@ function ContentListPage() { // Default to defaultLocale when i18n is enabled and no locale specified const activeLocale = i18n ? (localeParam ?? i18n.defaultLocale) : undefined; - const { - data, - fetchNextPage, - hasNextPage, - isFetchingNextPage, - isLoading, - error, - } = useInfiniteQuery({ - queryKey: ["content", collection, { locale: activeLocale }], - queryFn: ({ pageParam }) => - fetchContentList(collection, { - locale: activeLocale, - cursor: pageParam as string | undefined, - limit: 100, - }), - initialPageParam: undefined as string | undefined, - getNextPageParam: (lastPage) => lastPage.nextCursor, - enabled: !!manifest, - }); + const { data, fetchNextPage, hasNextPage, isFetchingNextPage, isLoading, error } = + useInfiniteQuery({ + queryKey: ["content", collection, { locale: activeLocale }], + queryFn: ({ pageParam }) => + fetchContentList(collection, { + locale: activeLocale, + cursor: pageParam as string | undefined, + limit: 100, + }), + initialPageParam: undefined as string | undefined, + getNextPageParam: (lastPage) => lastPage.nextCursor, + enabled: !!manifest, + }); // Fetch trashed items const { data: trashedData, isLoading: isTrashedLoading } = useQuery({