mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-26 04:53:10 +00:00
format: Prettier
This commit is contained in:
parent
607eecd12b
commit
199c83533b
5 changed files with 6 additions and 15 deletions
|
|
@ -23,6 +23,7 @@ flowchart LR
|
||||||
```
|
```
|
||||||
|
|
||||||
**Opções consideradas:**
|
**Opções consideradas:**
|
||||||
|
|
||||||
- A — JSON route + `useCampaignCellAutosave` (espelho B32 support-status)
|
- A — JSON route + `useCampaignCellAutosave` (espelho B32 support-status)
|
||||||
- B — Form action per-field + componente pencil/blur (espelho assessores, UX B153)
|
- B — Form action per-field + componente pencil/blur (espelho assessores, UX B153)
|
||||||
- C — Estender `updateLeadershipWizard` com PATCH parcial
|
- C — Estender `updateLeadershipWizard` com PATCH parcial
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import { redirect } from 'next/navigation'
|
||||||
import { getPayload } from 'payload'
|
import { getPayload } from 'payload'
|
||||||
|
|
||||||
import { LeadershipInviteRowAction } from '@/components/campaign/invite/LeadershipInviteRowAction'
|
import { LeadershipInviteRowAction } from '@/components/campaign/invite/LeadershipInviteRowAction'
|
||||||
|
import { LeadershipContactFieldControl } from '@/components/campaign/leadership/LeadershipContactFieldControl'
|
||||||
import { LeadershipFilters } from '@/components/campaign/leadership/LeadershipFilters'
|
import { LeadershipFilters } from '@/components/campaign/leadership/LeadershipFilters'
|
||||||
import { LeadershipListSupportStatusControl } from '@/components/campaign/leadership/LeadershipListSupportStatusControl'
|
import { LeadershipListSupportStatusControl } from '@/components/campaign/leadership/LeadershipListSupportStatusControl'
|
||||||
import {
|
import {
|
||||||
|
|
@ -12,7 +13,6 @@ import {
|
||||||
LeadershipSortableHead,
|
LeadershipSortableHead,
|
||||||
} from '@/components/campaign/leadership/LeadershipSortableHead'
|
} from '@/components/campaign/leadership/LeadershipSortableHead'
|
||||||
import { CampaignColumnPickerTrailing } from '@/components/campaign/shared/CampaignColumnPickerTrailing'
|
import { CampaignColumnPickerTrailing } from '@/components/campaign/shared/CampaignColumnPickerTrailing'
|
||||||
import { LeadershipContactFieldControl } from '@/components/campaign/leadership/LeadershipContactFieldControl'
|
|
||||||
import { CampaignListFooter } from '@/components/campaign/shared/CampaignListFooter'
|
import { CampaignListFooter } from '@/components/campaign/shared/CampaignListFooter'
|
||||||
import {
|
import {
|
||||||
CampaignListPendingBoundary,
|
CampaignListPendingBoundary,
|
||||||
|
|
@ -159,11 +159,7 @@ const leadershipColumns = ({
|
||||||
id: 'phone',
|
id: 'phone',
|
||||||
label: 'Celular',
|
label: 'Celular',
|
||||||
cell: (row) => (
|
cell: (row) => (
|
||||||
<LeadershipContactFieldControl
|
<LeadershipContactFieldControl leadershipId={row.id} field="phone" value={row.phone} />
|
||||||
leadershipId={row.id}
|
|
||||||
field="phone"
|
|
||||||
value={row.phone}
|
|
||||||
/>
|
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ import {
|
||||||
LEADERSHIP_INVALID_CONTACT_MESSAGE,
|
LEADERSHIP_INVALID_CONTACT_MESSAGE,
|
||||||
LEADERSHIP_MUNICIPALITY_SCOPE_MESSAGE,
|
LEADERSHIP_MUNICIPALITY_SCOPE_MESSAGE,
|
||||||
LEADERSHIP_STAFF_MESSAGE,
|
LEADERSHIP_STAFF_MESSAGE,
|
||||||
leadershipCreateSchema,
|
|
||||||
leadershipContactUpdateSchema,
|
leadershipContactUpdateSchema,
|
||||||
|
leadershipCreateSchema,
|
||||||
leadershipInternalUpdateSchema,
|
leadershipInternalUpdateSchema,
|
||||||
leadershipMunicipalitiesMembershipSchema,
|
leadershipMunicipalitiesMembershipSchema,
|
||||||
leadershipStateDeputyMembershipSchema,
|
leadershipStateDeputyMembershipSchema,
|
||||||
|
|
|
||||||
|
|
@ -174,9 +174,7 @@ export const LeadershipContactFieldControl = ({
|
||||||
<span className="truncate">{value}</span>
|
<span className="truncate">{value}</span>
|
||||||
</Link>
|
</Link>
|
||||||
) : (
|
) : (
|
||||||
<span
|
<span className={cn(campaignReadCellClassName, 'text-sm text-muted-foreground')}>
|
||||||
className={cn(campaignReadCellClassName, 'text-sm text-muted-foreground')}
|
|
||||||
>
|
|
||||||
—
|
—
|
||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -35,11 +35,7 @@ export const LeadershipContactSection = ({
|
||||||
<div className="flex flex-col gap-1">
|
<div className="flex flex-col gap-1">
|
||||||
<dt className="text-sm text-muted-foreground">Celular</dt>
|
<dt className="text-sm text-muted-foreground">Celular</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<LeadershipContactFieldControl
|
<LeadershipContactFieldControl leadershipId={leadershipId} field="phone" value={phone} />
|
||||||
leadershipId={leadershipId}
|
|
||||||
field="phone"
|
|
||||||
value={phone}
|
|
||||||
/>
|
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue