feat: add trusted ticket intake workspace

This commit is contained in:
hailin
2026-07-16 19:37:37 +08:00
parent bcd6de4609
commit 5db4c625ed
8 changed files with 522 additions and 141 deletions

View File

@@ -1,6 +1,7 @@
import type * as React from 'react'
import { Field, FieldDescription, FieldLabel } from '@/components/ui/field'
import { cn } from '@/lib/utils'
type AppFieldProps = {
label: string
@@ -8,12 +9,13 @@ type AppFieldProps = {
description?: string
invalid?: boolean
required?: boolean
className?: string
children: React.ReactNode
}
export function AppField({ label, htmlFor, description, invalid, required, children }: AppFieldProps) {
export function AppField({ label, htmlFor, description, invalid, required, className, children }: AppFieldProps) {
return (
<Field data-invalid={invalid ? true : undefined}>
<Field className={cn(className)} data-invalid={invalid ? true : undefined}>
<FieldLabel htmlFor={htmlFor}>
{label}
{required ? <span className="text-destructive">*</span> : null}