style: prettier

This commit is contained in:
Cursor Agent 2026-07-31 00:27:50 +00:00
parent 6c8d7d418c
commit 90a97d3c76
5 changed files with 42 additions and 45 deletions

View file

@ -4,6 +4,7 @@ import { redirect } from 'next/navigation'
import { getPayload } from 'payload' import { getPayload } from 'payload'
import React from 'react' import React from 'react'
import { CampaignListPendingBoundary } from '@/components/campaign/shared/CampaignListPending'
import { import {
BiometricEnrollmentToast, BiometricEnrollmentToast,
type BiometricEnrollmentOffer, type BiometricEnrollmentOffer,
@ -12,7 +13,6 @@ import { CampaignMobileTopBar } from '@/components/campaign/shell/CampaignMobile
import { CampaignSidebar } from '@/components/campaign/shell/CampaignSidebar' import { CampaignSidebar } from '@/components/campaign/shell/CampaignSidebar'
import { CampaignSidebarViewportDefault } from '@/components/campaign/shell/CampaignSidebarViewportDefault' import { CampaignSidebarViewportDefault } from '@/components/campaign/shell/CampaignSidebarViewportDefault'
import { CampaignWizardChromeProvider } from '@/components/campaign/shell/CampaignWizardChromeContext' import { CampaignWizardChromeProvider } from '@/components/campaign/shell/CampaignWizardChromeContext'
import { CampaignListPendingBoundary } from '@/components/campaign/shared/CampaignListPending'
import { InstallPwaToast } from '@/components/campaign/shell/InstallPwaToast' import { InstallPwaToast } from '@/components/campaign/shell/InstallPwaToast'
import { import {
SIDEBAR_COOKIE_NAME, SIDEBAR_COOKIE_NAME,

View file

@ -2,12 +2,12 @@
import { useEffect, useId, useMemo, useRef, type ReactNode } from 'react' import { useEffect, useId, useMemo, useRef, type ReactNode } from 'react'
import { CampaignListResults } from '@/components/campaign/shared/CampaignListPending'
import { import {
toCampaignWizardChromeState, toCampaignWizardChromeState,
useSetCampaignWizardChrome, useSetCampaignWizardChrome,
type CampaignWizardChromeSkip, type CampaignWizardChromeSkip,
} from '@/components/campaign/shell/CampaignWizardChromeContext' } from '@/components/campaign/shell/CampaignWizardChromeContext'
import { CampaignListResults } from '@/components/campaign/shared/CampaignListPending'
import { CAMPAIGN_HOME } from '@/lib/campaignPaths' import { CAMPAIGN_HOME } from '@/lib/campaignPaths'
import { WIZARD_STEP_PENDING_MESSAGE } from '@/lib/campaignWizardCopy' import { WIZARD_STEP_PENDING_MESSAGE } from '@/lib/campaignWizardCopy'
import { cn } from '@/lib/utils' import { cn } from '@/lib/utils'

View file

@ -2,9 +2,9 @@
import { ArrowLeft, X } from 'lucide-react' import { ArrowLeft, X } from 'lucide-react'
import { useCampaignWizardChrome } from '@/components/campaign/shell/CampaignWizardChromeContext'
import { useCampaignListTransition } from '@/components/campaign/shared/CampaignListPending' import { useCampaignListTransition } from '@/components/campaign/shared/CampaignListPending'
import { CampaignWizardNavLink } from '@/components/campaign/shared/CampaignWizardNavLink' import { CampaignWizardNavLink } from '@/components/campaign/shared/CampaignWizardNavLink'
import { useCampaignWizardChrome } from '@/components/campaign/shell/CampaignWizardChromeContext'
import { Button } from '@/components/ui/button' import { Button } from '@/components/ui/button'
import { SidebarTrigger } from '@/components/ui/Sidebar' import { SidebarTrigger } from '@/components/ui/Sidebar'
import { Skeleton } from '@/components/ui/skeleton' import { Skeleton } from '@/components/ui/skeleton'
@ -25,8 +25,7 @@ const wizardDismissButtonClass =
const wizardSkipButtonClass = const wizardSkipButtonClass =
'min-h-11 max-w-[9rem] px-2 text-primary-foreground hover:bg-primary-foreground/10 hover:text-primary-foreground' 'min-h-11 max-w-[9rem] px-2 text-primary-foreground hover:bg-primary-foreground/10 hover:text-primary-foreground'
const wizardTitleSkeletonClass = const wizardTitleSkeletonClass = 'mx-auto motion-reduce:animate-none bg-primary-foreground/20'
'mx-auto motion-reduce:animate-none bg-primary-foreground/20'
export const CampaignMobileTopBar = () => { export const CampaignMobileTopBar = () => {
const chrome = useCampaignWizardChrome() const chrome = useCampaignWizardChrome()
@ -66,9 +65,7 @@ export const CampaignMobileTopBar = () => {
<> <>
<Skeleton className={cn(wizardTitleSkeletonClass, 'h-4 w-32 max-w-full')} /> <Skeleton className={cn(wizardTitleSkeletonClass, 'h-4 w-32 max-w-full')} />
{chrome.municipalityLabel ? ( {chrome.municipalityLabel ? (
<Skeleton <Skeleton className={cn(wizardTitleSkeletonClass, 'mt-1 h-3 w-24 max-w-full')} />
className={cn(wizardTitleSkeletonClass, 'mt-1 h-3 w-24 max-w-full')}
/>
) : null} ) : null}
</> </>
) : ( ) : (

View file

@ -15,10 +15,10 @@ vi.mock('next/navigation', async (importActual) => ({
}), }),
})) }))
import { CampaignMobileTopBar } from '@/components/campaign/shell/CampaignMobileTopBar'
import { CampaignWizardChromeProvider } from '@/components/campaign/shell/CampaignWizardChromeContext'
import { CampaignListPendingBoundary } from '@/components/campaign/shared/CampaignListPending' import { CampaignListPendingBoundary } from '@/components/campaign/shared/CampaignListPending'
import { CampaignWizardShell } from '@/components/campaign/shared/CampaignWizardShell' import { CampaignWizardShell } from '@/components/campaign/shared/CampaignWizardShell'
import { CampaignMobileTopBar } from '@/components/campaign/shell/CampaignMobileTopBar'
import { CampaignWizardChromeProvider } from '@/components/campaign/shell/CampaignWizardChromeContext'
import { SidebarProvider } from '@/components/ui/Sidebar' import { SidebarProvider } from '@/components/ui/Sidebar'
import { WIZARD_STEP_PENDING_MESSAGE } from '@/lib/campaignWizardCopy' import { WIZARD_STEP_PENDING_MESSAGE } from '@/lib/campaignWizardCopy'
import { stubMatchMedia } from '../helpers/matchMedia' import { stubMatchMedia } from '../helpers/matchMedia'