mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-30 10:13:04 +00:00
Merge por Contact (uma linha por pessoa física) de lideranças, dobradinhas e staff, com capacidades como colunas; omnibox com capacidade/município/apoio + filtros salvos (2º call site do B18 via factory createSavedFilterStore); apagar pessoa com manifest de confirmação e cascata transacional; mobile edge-to-edge (omnibox sem bordas, cards com divisórias, salvar filtro no header). Sem migration. Closes #495
25 lines
753 B
TypeScript
25 lines
753 B
TypeScript
'use client'
|
|
|
|
import { useActivePeopleSavedFilter } from '@/components/campaign/shared/usePeopleSavedFilters'
|
|
import { SetCampaignPageChrome } from '@/components/campaign/shell/CampaignPageChromeContext'
|
|
import { campaignPageChromeCatalog } from '@/lib/campaignPageChrome'
|
|
|
|
/**
|
|
* When the current URL matches a saved people filter, the filter name becomes
|
|
* the page subtitle (B133 pattern) — the omnibox keeps chips as the editable
|
|
* recorte.
|
|
*/
|
|
export const PeopleListPageChrome = () => {
|
|
const activeFilter = useActivePeopleSavedFilter()
|
|
|
|
if (!activeFilter) return null
|
|
|
|
return (
|
|
<SetCampaignPageChrome
|
|
chrome={{
|
|
title: campaignPageChromeCatalog.pessoas.title,
|
|
subtitle: activeFilter.name,
|
|
}}
|
|
/>
|
|
)
|
|
}
|