Format apoiadores and organizacoes pages

This commit is contained in:
Cursor Agent 2026-08-01 23:05:18 +00:00
parent f49e8e3c55
commit e0789a673e
No known key found for this signature in database
2 changed files with 13 additions and 14 deletions

View file

@ -48,9 +48,7 @@ export default async function SupportersPage({ searchParams }: SupportersPagePro
const columnVisibility = await readCampaignColumnVisibility('apoiadores')
const overviewNode =
result.docs.length > 0 && overview ? (
<SupporterListOverview view={overview} now={now} />
) : null
result.docs.length > 0 && overview ? <SupporterListOverview view={overview} now={now} /> : null
const toolbarNode = (
<SupporterFilters
@ -78,16 +76,17 @@ export default async function SupportersPage({ searchParams }: SupportersPagePro
/>
)
const footerNode = result.docs.length > 0 ? (
<CampaignListFooter
totalDocs={result.totalDocs}
singular="apoiador encontrado"
plural="apoiadores encontrados"
page={state.page}
totalPages={result.totalPages}
hrefForPage={(page) => buildSupporterListHref(state, page)}
/>
) : null
const footerNode =
result.docs.length > 0 ? (
<CampaignListFooter
totalDocs={result.totalDocs}
singular="apoiador encontrado"
plural="apoiadores encontrados"
page={state.page}
totalPages={result.totalPages}
hrefForPage={(page) => buildSupporterListHref(state, page)}
/>
) : null
const main = resolveListUnifiedEnabled() ? (
<OpsListPage

View file

@ -15,8 +15,8 @@ import { OpsListPage } from '@/components/campaign/shared/OpsListPage'
import { CampaignPageShell } from '@/components/campaign/shell/CampaignPageShell'
import { Badge } from '@/components/ui/Badge'
import { Button } from '@/components/ui/button'
import { organizationKindLabels } from '@/lib/schemas/organization'
import { resolveListUnifiedEnabled } from '@/lib/opsListRegistry/opsListFlag'
import { organizationKindLabels } from '@/lib/schemas/organization'
import { readCampaignColumnVisibility } from '@/utilities/campaignColumnVisibilityCookie'
import { requireCampaignPageActor } from '@/utilities/campaignPageActor'
import {