From 8a720b028511403b06accd4500a6d87999cb3983 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 1 Aug 2026 07:24:10 +0000 Subject: [PATCH] style: prettier --- src/components/campaign/shared/WizardExpectedVotesStep.tsx | 2 +- .../campaign/shared/WizardMunicipalitySearchStep.tsx | 2 +- src/components/campaign/shell/CampaignSidebar.tsx | 2 +- tests/unit/wizardMunicipalitySuggestMerge.unit.spec.ts | 4 +++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/campaign/shared/WizardExpectedVotesStep.tsx b/src/components/campaign/shared/WizardExpectedVotesStep.tsx index 592b6a49..d08c6512 100644 --- a/src/components/campaign/shared/WizardExpectedVotesStep.tsx +++ b/src/components/campaign/shared/WizardExpectedVotesStep.tsx @@ -14,8 +14,8 @@ import { Alert, AlertDescription } from '@/components/ui/Alert' import { Button } from '@/components/ui/button' import { Spinner } from '@/components/ui/Spinner' import { wizardActionHref } from '@/lib/campaignActionRoutes' -import { recordLastActedMunicipality } from '@/lib/campaignLastActedMunicipality' import { postCampaignJson } from '@/lib/campaignJsonRequest' +import { recordLastActedMunicipality } from '@/lib/campaignLastActedMunicipality' import { CAMPAIGN_HOME } from '@/lib/campaignPaths' import { WIZARD_VOTES_FINAL_CTA_LABEL, diff --git a/src/components/campaign/shared/WizardMunicipalitySearchStep.tsx b/src/components/campaign/shared/WizardMunicipalitySearchStep.tsx index 8aaa474f..38751788 100644 --- a/src/components/campaign/shared/WizardMunicipalitySearchStep.tsx +++ b/src/components/campaign/shared/WizardMunicipalitySearchStep.tsx @@ -8,7 +8,6 @@ import { useHomeSearchQuery } from '@/components/campaign/dashboard/useHomeSearc import { CampaignSearchInput } from '@/components/campaign/shared/CampaignSearchInput' import { CampaignWizardShell } from '@/components/campaign/shared/CampaignWizardShell' import { wizardActionHref } from '@/lib/campaignActionRoutes' -import { getLastActedMunicipalitySlug } from '@/lib/campaignLastActedMunicipality' import type { HomeSearchMunicipalityHit, WizardMunicipalitySearchSuccessResponse, @@ -16,6 +15,7 @@ import type { import { toHomeSearchMunicipalityHit } from '@/lib/campaignHomeSearchHits' import { HOME_SEARCH_GENERIC_ERROR_MESSAGE } from '@/lib/campaignHomeSearchMessages' import { postCampaignJson } from '@/lib/campaignJsonRequest' +import { getLastActedMunicipalitySlug } from '@/lib/campaignLastActedMunicipality' import { WIZARD_MUNICIPALITY_SEARCH_EMPTY, WIZARD_MUNICIPALITY_SEARCH_LABEL, diff --git a/src/components/campaign/shell/CampaignSidebar.tsx b/src/components/campaign/shell/CampaignSidebar.tsx index c2305ddd..a9e7b65b 100644 --- a/src/components/campaign/shell/CampaignSidebar.tsx +++ b/src/components/campaign/shell/CampaignSidebar.tsx @@ -30,11 +30,11 @@ import { useSidebar, } from '@/components/ui/Sidebar' import { Spinner } from '@/components/ui/Spinner' +import { clearLastActedMunicipality } from '@/lib/campaignLastActedMunicipality' import { clearCampaignPwaCaches } from '@/utilities/campaignPwaClient' import type { CampaignUserShellView } from '@/utilities/campaignUserProfile' import { campaignRoleLabels } from '@/utilities/campaignUserProfile' import { clearMunicipalitySavedFilters } from '@/utilities/municipality/municipalitySavedFilters' -import { clearLastActedMunicipality } from '@/lib/campaignLastActedMunicipality' import { clearRecentVisits } from '@/utilities/recentVisits' export type CampaignSidebarUser = CampaignUserShellView diff --git a/tests/unit/wizardMunicipalitySuggestMerge.unit.spec.ts b/tests/unit/wizardMunicipalitySuggestMerge.unit.spec.ts index a8e0e696..55136068 100644 --- a/tests/unit/wizardMunicipalitySuggestMerge.unit.spec.ts +++ b/tests/unit/wizardMunicipalitySuggestMerge.unit.spec.ts @@ -21,7 +21,9 @@ const hit = ( ...partial, }) -const visit = (overrides: Partial = {}): WizardContinuityVisitInput => ({ +const visit = ( + overrides: Partial = {}, +): WizardContinuityVisitInput => ({ href: '/campanha/municipios/cairu', kind: 'municipality', ...overrides,