feat: add trusted ticket intake workspace
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user