diff --git a/src/app/(campaign)/campanha/(app)/municipios/[slug]/MunicipalityDetailTabs.tsx b/src/app/(campaign)/campanha/(app)/municipios/[slug]/MunicipalityDetailTabs.tsx index 6dfe34f3..e391008a 100644 --- a/src/app/(campaign)/campanha/(app)/municipios/[slug]/MunicipalityDetailTabs.tsx +++ b/src/app/(campaign)/campanha/(app)/municipios/[slug]/MunicipalityDetailTabs.tsx @@ -6,12 +6,12 @@ import { MunicipalityGoalAccountCard } from '@/components/campaign/municipality/ import { MunicipalityLeadershipsPanel } from '@/components/campaign/municipality/MunicipalityLeadershipsPanel' import { MunicipalityPledgesPanel } from '@/components/campaign/municipality/MunicipalityPledgesPanel' import { MunicipalityStrategyCard } from '@/components/campaign/municipality/MunicipalityStrategyCard' -import { resolveOpsHybridEnabled } from '@/components/campaign/opsSync/opsHybridEnabled' import { MunicipalityTicketPartnersCard } from '@/components/campaign/municipality/MunicipalityTicketPartnersCard' import { MunicipalityUpdateFeed } from '@/components/campaign/municipality/MunicipalityUpdateFeed' import { MunicipalityUpdateForm } from '@/components/campaign/municipality/MunicipalityUpdateForm' import { MunicipalityVisitEligibilityCard } from '@/components/campaign/municipality/MunicipalityVisitEligibilityCard' import { MunicipalityZoneNeighborhoodsCard } from '@/components/campaign/municipality/MunicipalityZoneNeighborhoodsCard' +import { resolveOpsHybridEnabled } from '@/components/campaign/opsSync/opsHybridEnabled' import { CampaignListPagination } from '@/components/campaign/shared/CampaignListPagination' import { SuggestionsPanel } from '@/components/campaign/suggestion/SuggestionsPanel' import type { VoteEstimateScenarioViewModel } from '@/lib/voteEstimate' diff --git a/src/components/campaign/opsSync/opsEstimateOutbox.ts b/src/components/campaign/opsSync/opsEstimateOutbox.ts index 78114eeb..deb77b62 100644 --- a/src/components/campaign/opsSync/opsEstimateOutbox.ts +++ b/src/components/campaign/opsSync/opsEstimateOutbox.ts @@ -103,9 +103,7 @@ export const getOpsEstimateOfflineExecutor = async (): Promise return initPromise } -export const enqueueEstimateVotes = async ( - input: EnqueueEstimateVotesInput, -): Promise => { +export const enqueueEstimateVotes = async (input: EnqueueEstimateVotesInput): Promise => { const executor = await getOpsEstimateOfflineExecutor() const run = executor.createOfflineAction({ diff --git a/src/components/campaign/votePledge/PledgeEstimateForm.tsx b/src/components/campaign/votePledge/PledgeEstimateForm.tsx index 4a08c0bb..613aac88 100644 --- a/src/components/campaign/votePledge/PledgeEstimateForm.tsx +++ b/src/components/campaign/votePledge/PledgeEstimateForm.tsx @@ -27,9 +27,7 @@ import { Button } from '@/components/ui/button' import { Field, FieldError, FieldLabel } from '@/components/ui/field' import { Input } from '@/components/ui/input' import { Spinner } from '@/components/ui/Spinner' -import { - OPS_ESTIMATE_CONFLICT_MESSAGE, -} from '@/lib/schemas/votePledge' +import { OPS_ESTIMATE_CONFLICT_MESSAGE } from '@/lib/schemas/votePledge' import { toVoteEstimateScenarioViewModel, type VoteEstimateScenarioViewModel, @@ -241,9 +239,7 @@ const HybridPledgeEstimateForm = ({ }, (error: unknown) => { setFormError( - error instanceof Error - ? error.message - : 'Não foi possível reenviar a estimativa.', + error instanceof Error ? error.message : 'Não foi possível reenviar a estimativa.', ) }, ) @@ -294,9 +290,7 @@ const HybridPledgeEstimateForm = ({ (error: unknown) => { setIsSubmitting(false) setFormError( - error instanceof Error - ? error.message - : 'Não foi possível enfileirar a estimativa.', + error instanceof Error ? error.message : 'Não foi possível enfileirar a estimativa.', ) }, ) diff --git a/tests/unit/opsEstimateOutbox.unit.spec.ts b/tests/unit/opsEstimateOutbox.unit.spec.ts index 64e66f51..8c674d92 100644 --- a/tests/unit/opsEstimateOutbox.unit.spec.ts +++ b/tests/unit/opsEstimateOutbox.unit.spec.ts @@ -8,11 +8,7 @@ import { import { resolveOpsHybridEnabled } from '@/components/campaign/opsSync/opsHybridEnabled' import type { OfflineTransaction } from '@tanstack/offline-transactions' -const tx = ( - id: string, - pledgeId: number, - createdAtMs: number, -): OfflineTransaction => +const tx = (id: string, pledgeId: number, createdAtMs: number): OfflineTransaction => ({ id, mutationFnName: 'estimateVotes',