mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-26 21:53:06 +00:00
Format apoiadores and organizacoes pages
This commit is contained in:
parent
f49e8e3c55
commit
e0789a673e
2 changed files with 13 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue