fix: format router.tsx to pass oxfmt check

This commit is contained in:
Matt Kane
2026-04-04 16:00:27 +01:00
parent 66beb4da1f
commit 8fb4173036

View File

@@ -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({