mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-29 08:55:22 +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 columnVisibility = await readCampaignColumnVisibility('apoiadores')
|
||||||
|
|
||||||
const overviewNode =
|
const overviewNode =
|
||||||
result.docs.length > 0 && overview ? (
|
result.docs.length > 0 && overview ? <SupporterListOverview view={overview} now={now} /> : null
|
||||||
<SupporterListOverview view={overview} now={now} />
|
|
||||||
) : null
|
|
||||||
|
|
||||||
const toolbarNode = (
|
const toolbarNode = (
|
||||||
<SupporterFilters
|
<SupporterFilters
|
||||||
|
|
@ -78,16 +76,17 @@ export default async function SupportersPage({ searchParams }: SupportersPagePro
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
||||||
const footerNode = result.docs.length > 0 ? (
|
const footerNode =
|
||||||
<CampaignListFooter
|
result.docs.length > 0 ? (
|
||||||
totalDocs={result.totalDocs}
|
<CampaignListFooter
|
||||||
singular="apoiador encontrado"
|
totalDocs={result.totalDocs}
|
||||||
plural="apoiadores encontrados"
|
singular="apoiador encontrado"
|
||||||
page={state.page}
|
plural="apoiadores encontrados"
|
||||||
totalPages={result.totalPages}
|
page={state.page}
|
||||||
hrefForPage={(page) => buildSupporterListHref(state, page)}
|
totalPages={result.totalPages}
|
||||||
/>
|
hrefForPage={(page) => buildSupporterListHref(state, page)}
|
||||||
) : null
|
/>
|
||||||
|
) : null
|
||||||
|
|
||||||
const main = resolveListUnifiedEnabled() ? (
|
const main = resolveListUnifiedEnabled() ? (
|
||||||
<OpsListPage
|
<OpsListPage
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@ import { OpsListPage } from '@/components/campaign/shared/OpsListPage'
|
||||||
import { CampaignPageShell } from '@/components/campaign/shell/CampaignPageShell'
|
import { CampaignPageShell } from '@/components/campaign/shell/CampaignPageShell'
|
||||||
import { Badge } from '@/components/ui/Badge'
|
import { Badge } from '@/components/ui/Badge'
|
||||||
import { Button } from '@/components/ui/button'
|
import { Button } from '@/components/ui/button'
|
||||||
import { organizationKindLabels } from '@/lib/schemas/organization'
|
|
||||||
import { resolveListUnifiedEnabled } from '@/lib/opsListRegistry/opsListFlag'
|
import { resolveListUnifiedEnabled } from '@/lib/opsListRegistry/opsListFlag'
|
||||||
|
import { organizationKindLabels } from '@/lib/schemas/organization'
|
||||||
import { readCampaignColumnVisibility } from '@/utilities/campaignColumnVisibilityCookie'
|
import { readCampaignColumnVisibility } from '@/utilities/campaignColumnVisibilityCookie'
|
||||||
import { requireCampaignPageActor } from '@/utilities/campaignPageActor'
|
import { requireCampaignPageActor } from '@/utilities/campaignPageActor'
|
||||||
import {
|
import {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue