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:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user