mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-26 21:53:06 +00:00
style(OH6): prettier format
This commit is contained in:
parent
9a402d2ac1
commit
f69eaa8f82
4 changed files with 6 additions and 18 deletions
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -103,9 +103,7 @@ export const getOpsEstimateOfflineExecutor = async (): Promise<OfflineExecutor>
|
|||
return initPromise
|
||||
}
|
||||
|
||||
export const enqueueEstimateVotes = async (
|
||||
input: EnqueueEstimateVotesInput,
|
||||
): Promise<void> => {
|
||||
export const enqueueEstimateVotes = async (input: EnqueueEstimateVotesInput): Promise<void> => {
|
||||
const executor = await getOpsEstimateOfflineExecutor()
|
||||
|
||||
const run = executor.createOfflineAction<EnqueueEstimateVotesInput>({
|
||||
|
|
|
|||
|
|
@ -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.',
|
||||
)
|
||||
},
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue