mirror of
https://github.com/fsolla/teqo.git
synced 2026-12-03 05:43:04 +00:00
style: prettier
This commit is contained in:
parent
6c8d7d418c
commit
90a97d3c76
5 changed files with 42 additions and 45 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
|
|
|
||||||
|
|
@ -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}
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue