format: Prettier

This commit is contained in:
Cursor Agent 2026-08-03 14:10:07 +00:00
parent 607eecd12b
commit 199c83533b
No known key found for this signature in database
5 changed files with 6 additions and 15 deletions

View file

@ -23,6 +23,7 @@ flowchart LR
```
**Opções consideradas:**
- A — JSON route + `useCampaignCellAutosave` (espelho B32 support-status)
- B — Form action per-field + componente pencil/blur (espelho assessores, UX B153)
- C — Estender `updateLeadershipWizard` com PATCH parcial

View file

@ -5,6 +5,7 @@ import { redirect } from 'next/navigation'
import { getPayload } from 'payload'
import { LeadershipInviteRowAction } from '@/components/campaign/invite/LeadershipInviteRowAction'
import { LeadershipContactFieldControl } from '@/components/campaign/leadership/LeadershipContactFieldControl'
import { LeadershipFilters } from '@/components/campaign/leadership/LeadershipFilters'
import { LeadershipListSupportStatusControl } from '@/components/campaign/leadership/LeadershipListSupportStatusControl'
import {
@ -12,7 +13,6 @@ import {
LeadershipSortableHead,
} from '@/components/campaign/leadership/LeadershipSortableHead'
import { CampaignColumnPickerTrailing } from '@/components/campaign/shared/CampaignColumnPickerTrailing'
import { LeadershipContactFieldControl } from '@/components/campaign/leadership/LeadershipContactFieldControl'
import { CampaignListFooter } from '@/components/campaign/shared/CampaignListFooter'
import {
CampaignListPendingBoundary,
@ -159,11 +159,7 @@ const leadershipColumns = ({
id: 'phone',
label: 'Celular',
cell: (row) => (
<LeadershipContactFieldControl
leadershipId={row.id}
field="phone"
value={row.phone}
/>
<LeadershipContactFieldControl leadershipId={row.id} field="phone" value={row.phone} />
),
},
{

View file

@ -11,8 +11,8 @@ import {
LEADERSHIP_INVALID_CONTACT_MESSAGE,
LEADERSHIP_MUNICIPALITY_SCOPE_MESSAGE,
LEADERSHIP_STAFF_MESSAGE,
leadershipCreateSchema,
leadershipContactUpdateSchema,
leadershipCreateSchema,
leadershipInternalUpdateSchema,
leadershipMunicipalitiesMembershipSchema,
leadershipStateDeputyMembershipSchema,

View file

@ -174,9 +174,7 @@ export const LeadershipContactFieldControl = ({
<span className="truncate">{value}</span>
</Link>
) : (
<span
className={cn(campaignReadCellClassName, 'text-sm text-muted-foreground')}
>
<span className={cn(campaignReadCellClassName, 'text-sm text-muted-foreground')}>
—
</span>
)

View file

@ -35,11 +35,7 @@ export const LeadershipContactSection = ({
<div className="flex flex-col gap-1">
<dt className="text-sm text-muted-foreground">Celular</dt>
<dd>
<LeadershipContactFieldControl
leadershipId={leadershipId}
field="phone"
value={phone}
/>
<LeadershipContactFieldControl leadershipId={leadershipId} field="phone" value={phone} />
</dd>
</div>
</dl>