mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-20 01:33:05 +00:00
style: prettier
This commit is contained in:
parent
0114c348d5
commit
8a720b0285
4 changed files with 6 additions and 4 deletions
|
|
@ -14,8 +14,8 @@ import { Alert, AlertDescription } from '@/components/ui/Alert'
|
||||||
import { Button } from '@/components/ui/button'
|
import { Button } from '@/components/ui/button'
|
||||||
import { Spinner } from '@/components/ui/Spinner'
|
import { Spinner } from '@/components/ui/Spinner'
|
||||||
import { wizardActionHref } from '@/lib/campaignActionRoutes'
|
import { wizardActionHref } from '@/lib/campaignActionRoutes'
|
||||||
import { recordLastActedMunicipality } from '@/lib/campaignLastActedMunicipality'
|
|
||||||
import { postCampaignJson } from '@/lib/campaignJsonRequest'
|
import { postCampaignJson } from '@/lib/campaignJsonRequest'
|
||||||
|
import { recordLastActedMunicipality } from '@/lib/campaignLastActedMunicipality'
|
||||||
import { CAMPAIGN_HOME } from '@/lib/campaignPaths'
|
import { CAMPAIGN_HOME } from '@/lib/campaignPaths'
|
||||||
import {
|
import {
|
||||||
WIZARD_VOTES_FINAL_CTA_LABEL,
|
WIZARD_VOTES_FINAL_CTA_LABEL,
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ import { useHomeSearchQuery } from '@/components/campaign/dashboard/useHomeSearc
|
||||||
import { CampaignSearchInput } from '@/components/campaign/shared/CampaignSearchInput'
|
import { CampaignSearchInput } from '@/components/campaign/shared/CampaignSearchInput'
|
||||||
import { CampaignWizardShell } from '@/components/campaign/shared/CampaignWizardShell'
|
import { CampaignWizardShell } from '@/components/campaign/shared/CampaignWizardShell'
|
||||||
import { wizardActionHref } from '@/lib/campaignActionRoutes'
|
import { wizardActionHref } from '@/lib/campaignActionRoutes'
|
||||||
import { getLastActedMunicipalitySlug } from '@/lib/campaignLastActedMunicipality'
|
|
||||||
import type {
|
import type {
|
||||||
HomeSearchMunicipalityHit,
|
HomeSearchMunicipalityHit,
|
||||||
WizardMunicipalitySearchSuccessResponse,
|
WizardMunicipalitySearchSuccessResponse,
|
||||||
|
|
@ -16,6 +15,7 @@ import type {
|
||||||
import { toHomeSearchMunicipalityHit } from '@/lib/campaignHomeSearchHits'
|
import { toHomeSearchMunicipalityHit } from '@/lib/campaignHomeSearchHits'
|
||||||
import { HOME_SEARCH_GENERIC_ERROR_MESSAGE } from '@/lib/campaignHomeSearchMessages'
|
import { HOME_SEARCH_GENERIC_ERROR_MESSAGE } from '@/lib/campaignHomeSearchMessages'
|
||||||
import { postCampaignJson } from '@/lib/campaignJsonRequest'
|
import { postCampaignJson } from '@/lib/campaignJsonRequest'
|
||||||
|
import { getLastActedMunicipalitySlug } from '@/lib/campaignLastActedMunicipality'
|
||||||
import {
|
import {
|
||||||
WIZARD_MUNICIPALITY_SEARCH_EMPTY,
|
WIZARD_MUNICIPALITY_SEARCH_EMPTY,
|
||||||
WIZARD_MUNICIPALITY_SEARCH_LABEL,
|
WIZARD_MUNICIPALITY_SEARCH_LABEL,
|
||||||
|
|
|
||||||
|
|
@ -30,11 +30,11 @@ import {
|
||||||
useSidebar,
|
useSidebar,
|
||||||
} from '@/components/ui/Sidebar'
|
} from '@/components/ui/Sidebar'
|
||||||
import { Spinner } from '@/components/ui/Spinner'
|
import { Spinner } from '@/components/ui/Spinner'
|
||||||
|
import { clearLastActedMunicipality } from '@/lib/campaignLastActedMunicipality'
|
||||||
import { clearCampaignPwaCaches } from '@/utilities/campaignPwaClient'
|
import { clearCampaignPwaCaches } from '@/utilities/campaignPwaClient'
|
||||||
import type { CampaignUserShellView } from '@/utilities/campaignUserProfile'
|
import type { CampaignUserShellView } from '@/utilities/campaignUserProfile'
|
||||||
import { campaignRoleLabels } from '@/utilities/campaignUserProfile'
|
import { campaignRoleLabels } from '@/utilities/campaignUserProfile'
|
||||||
import { clearMunicipalitySavedFilters } from '@/utilities/municipality/municipalitySavedFilters'
|
import { clearMunicipalitySavedFilters } from '@/utilities/municipality/municipalitySavedFilters'
|
||||||
import { clearLastActedMunicipality } from '@/lib/campaignLastActedMunicipality'
|
|
||||||
import { clearRecentVisits } from '@/utilities/recentVisits'
|
import { clearRecentVisits } from '@/utilities/recentVisits'
|
||||||
|
|
||||||
export type CampaignSidebarUser = CampaignUserShellView
|
export type CampaignSidebarUser = CampaignUserShellView
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,9 @@ const hit = (
|
||||||
...partial,
|
...partial,
|
||||||
})
|
})
|
||||||
|
|
||||||
const visit = (overrides: Partial<WizardContinuityVisitInput> = {}): WizardContinuityVisitInput => ({
|
const visit = (
|
||||||
|
overrides: Partial<WizardContinuityVisitInput> = {},
|
||||||
|
): WizardContinuityVisitInput => ({
|
||||||
href: '/campanha/municipios/cairu',
|
href: '/campanha/municipios/cairu',
|
||||||
kind: 'municipality',
|
kind: 'municipality',
|
||||||
...overrides,
|
...overrides,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue