B98 — format Prettier nos arquivos do encadeamento
This commit is contained in:
parent
346949d035
commit
d8f54a5d73
7 changed files with 7 additions and 25 deletions
|
|
@ -38,10 +38,7 @@ import {
|
|||
resolveWizardTrendNoteDestination,
|
||||
} from '@/lib/politicalTrendWizardUi'
|
||||
import { toVoteEstimateScenarioViewModel } from '@/lib/voteEstimate'
|
||||
import {
|
||||
isWizardChainActionId,
|
||||
wizardChainContinueHref,
|
||||
} from '@/lib/wizardActionChain'
|
||||
import { isWizardChainActionId, wizardChainContinueHref } from '@/lib/wizardActionChain'
|
||||
import config from '@/payload.config'
|
||||
import { requireCampaignPageActor } from '@/utilities/campaignPageActor'
|
||||
import { loadWizardLeadershipTiles } from '@/utilities/leadership/leadershipData'
|
||||
|
|
|
|||
|
|
@ -36,10 +36,7 @@ import {
|
|||
} from '@/lib/campaignWizardCopy'
|
||||
import { truncateNameAtWordBoundary } from '@/lib/leadershipNameTruncate'
|
||||
import { cn } from '@/lib/utils'
|
||||
import {
|
||||
resolveWizardChainEntry,
|
||||
wizardChainContinueHref,
|
||||
} from '@/lib/wizardActionChain'
|
||||
import { resolveWizardChainEntry, wizardChainContinueHref } from '@/lib/wizardActionChain'
|
||||
import {
|
||||
resolveWizardLeadershipSkip,
|
||||
type WizardLeadershipTileViewModel,
|
||||
|
|
|
|||
|
|
@ -17,10 +17,7 @@ import { recordLastActedMunicipality } from '@/lib/campaignLastActedMunicipality
|
|||
import { wizardFlowTitleForSlug } from '@/lib/campaignWizardCopy'
|
||||
import type { MunicipalitySignalType } from '@/lib/schemas/municipalityUpdate'
|
||||
import { municipalitySignalTypeLabels } from '@/lib/schemas/municipalityUpdate'
|
||||
import {
|
||||
resolveWizardChainEntry,
|
||||
wizardChainContinueHref,
|
||||
} from '@/lib/wizardActionChain'
|
||||
import { resolveWizardChainEntry, wizardChainContinueHref } from '@/lib/wizardActionChain'
|
||||
import {
|
||||
resolveWizardSignalSkip,
|
||||
WIZARD_SIGNAL_BODY_STEP_TITLE_PREFIX,
|
||||
|
|
|
|||
|
|
@ -21,10 +21,7 @@ import {
|
|||
WIZARD_TREND_SAVE_LABEL,
|
||||
} from '@/lib/politicalTrendWizardUi'
|
||||
import type { PoliticalTrendStatusValue } from '@/lib/schemas/municipality'
|
||||
import {
|
||||
resolveWizardChainEntry,
|
||||
wizardChainContinueHref,
|
||||
} from '@/lib/wizardActionChain'
|
||||
import { resolveWizardChainEntry, wizardChainContinueHref } from '@/lib/wizardActionChain'
|
||||
import { politicalTrendLabels } from '@/utilities/municipality/municipalityLabels'
|
||||
|
||||
type WizardTrendNoteStepProps = {
|
||||
|
|
|
|||
|
|
@ -28,10 +28,7 @@ import {
|
|||
wizardNextStepTitle,
|
||||
} from '@/lib/campaignWizardCopy'
|
||||
import { type VoteEstimateScenario, type VoteEstimateScenarioViewModel } from '@/lib/voteEstimate'
|
||||
import {
|
||||
resolveWizardChainEntry,
|
||||
wizardChainContinueHref,
|
||||
} from '@/lib/wizardActionChain'
|
||||
import { resolveWizardChainEntry, wizardChainContinueHref } from '@/lib/wizardActionChain'
|
||||
import {
|
||||
applyVoteShortcut,
|
||||
getWizardVoteViolation,
|
||||
|
|
|
|||
|
|
@ -94,5 +94,4 @@ export const wizardChainContinueHref = (
|
|||
export const resolveWizardChainEntry = (
|
||||
entryAction: CampaignWizardActionId | undefined,
|
||||
currentAction: WizardChainActionId,
|
||||
): WizardChainActionId =>
|
||||
isWizardChainActionId(entryAction) ? entryAction : currentAction
|
||||
): WizardChainActionId => (isWizardChainActionId(entryAction) ? entryAction : currentAction)
|
||||
|
|
|
|||
|
|
@ -69,9 +69,7 @@ describe('wizardActionChain', () => {
|
|||
expect(wizardChainContinueHref('change-trend', 'update-leadership', 'cairu')).toBe(
|
||||
CAMPAIGN_HOME,
|
||||
)
|
||||
expect(wizardChainContinueHref('register-demand', 'update-votes', 'cairu')).toBe(
|
||||
CAMPAIGN_HOME,
|
||||
)
|
||||
expect(wizardChainContinueHref('register-demand', 'update-votes', 'cairu')).toBe(CAMPAIGN_HOME)
|
||||
})
|
||||
|
||||
it('resolves session entry from query or current principal', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue