mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 23:53:05 +00:00
106 arquivos flat -> 15 dominios (actionPlan, advisor, auth, dashboard, demand, invite, leadership, map, municipality, organization, stateDeputy, supporter, votePledge, shared, shell) via git mv; imports absolutos reescritos em 98 arquivos; excecao de lint do campaign-logo e paths dos specs de contrato (campaignInviteUi, campaignComponents) atualizados. Sem mudanca de conteudo nos componentes.
28 lines
740 B
TypeScript
28 lines
740 B
TypeScript
import type { ComponentProps, ReactNode } from 'react'
|
|
|
|
import { CampaignLogo } from '@/components/campaign/shell/campaign-logo'
|
|
import { cn } from '@/lib/utils'
|
|
|
|
type CampaignAuthPageShellProps = {
|
|
children: ReactNode
|
|
className?: string
|
|
} & Omit<ComponentProps<'main'>, 'children' | 'className'>
|
|
|
|
export const CampaignAuthPageShell = ({
|
|
children,
|
|
className,
|
|
...props
|
|
}: CampaignAuthPageShellProps) => (
|
|
<main
|
|
className={cn(
|
|
'flex min-h-svh flex-col items-center justify-center gap-6 bg-muted p-6 md:p-10',
|
|
className,
|
|
)}
|
|
{...props}
|
|
>
|
|
<div className="flex w-full max-w-sm flex-col gap-6">
|
|
<CampaignLogo className="mx-auto w-40 max-w-full bg-primary" />
|
|
{children}
|
|
</div>
|
|
</main>
|
|
)
|