style: reformatar pages com Biome (line wrapping)

Formatação automática do Biome em fatura/page, categorias/page e
extrato/page — apenas line wrapping de destructuring de Promise.all.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Felipe Coutinho
2026-02-26 17:23:51 +00:00
parent edd5b8627d
commit c5750b081f
3 changed files with 33 additions and 22 deletions

View File

@@ -52,14 +52,19 @@ export default async function Page({ params, searchParams }: PageProps) {
notFound(); notFound();
} }
const [filterSources, logoOptions, invoiceData, estabelecimentos, userPreferences] = const [
await Promise.all([ filterSources,
fetchLancamentoFilterSources(userId), logoOptions,
loadLogoOptions(), invoiceData,
fetchInvoiceData(userId, cartaoId, selectedPeriod), estabelecimentos,
getRecentEstablishmentsAction(), userPreferences,
fetchUserPreferences(userId), ] = await Promise.all([
]); fetchLancamentoFilterSources(userId),
loadLogoOptions(),
fetchInvoiceData(userId, cartaoId, selectedPeriod),
getRecentEstablishmentsAction(),
fetchUserPreferences(userId),
]);
const sluggedFilters = buildSluggedFilters(filterSources); const sluggedFilters = buildSluggedFilters(filterSources);
const slugMaps = buildSlugMaps(sluggedFilters); const slugMaps = buildSlugMaps(sluggedFilters);

View File

@@ -37,12 +37,13 @@ export default async function Page({ params, searchParams }: PageProps) {
const periodoParam = getSingleParam(resolvedSearchParams, "periodo"); const periodoParam = getSingleParam(resolvedSearchParams, "periodo");
const { period: selectedPeriod } = parsePeriodParam(periodoParam); const { period: selectedPeriod } = parsePeriodParam(periodoParam);
const [detail, filterSources, estabelecimentos, userPreferences] = await Promise.all([ const [detail, filterSources, estabelecimentos, userPreferences] =
fetchCategoryDetails(userId, categoryId, selectedPeriod), await Promise.all([
fetchLancamentoFilterSources(userId), fetchCategoryDetails(userId, categoryId, selectedPeriod),
getRecentEstablishmentsAction(), fetchLancamentoFilterSources(userId),
fetchUserPreferences(userId), getRecentEstablishmentsAction(),
]); fetchUserPreferences(userId),
]);
if (!detail) { if (!detail) {
notFound(); notFound();

View File

@@ -58,14 +58,19 @@ export default async function Page({ params, searchParams }: PageProps) {
notFound(); notFound();
} }
const [filterSources, logoOptions, accountSummary, estabelecimentos, userPreferences] = const [
await Promise.all([ filterSources,
fetchLancamentoFilterSources(userId), logoOptions,
loadLogoOptions(), accountSummary,
fetchAccountSummary(userId, contaId, selectedPeriod), estabelecimentos,
getRecentEstablishmentsAction(), userPreferences,
fetchUserPreferences(userId), ] = await Promise.all([
]); fetchLancamentoFilterSources(userId),
loadLogoOptions(),
fetchAccountSummary(userId, contaId, selectedPeriod),
getRecentEstablishmentsAction(),
fetchUserPreferences(userId),
]);
const sluggedFilters = buildSluggedFilters(filterSources); const sluggedFilters = buildSluggedFilters(filterSources);
const slugMaps = buildSlugMaps(sluggedFilters); const slugMaps = buildSlugMaps(sluggedFilters);