diff --git a/app/components/Dialog.tsx b/app/components/Dialog.tsx index 7a2074f..a67e18b 100644 --- a/app/components/Dialog.tsx +++ b/app/components/Dialog.tsx @@ -122,9 +122,7 @@ function Panel(props: DialogPanelProps) { diff --git a/app/components/Input.tsx b/app/components/Input.tsx index 804062a..54cb64f 100644 --- a/app/components/Input.tsx +++ b/app/components/Input.tsx @@ -1,3 +1,4 @@ +import { Asterisk } from 'lucide-react'; import { useRef } from 'react'; import { type AriaTextFieldProps, useId, useTextField } from 'react-aria'; import cn from '~/utils/cn'; @@ -9,6 +10,7 @@ export interface InputProps extends AriaTextFieldProps { className?: string; } +// TODO: Custom isInvalid logic for custom error messages export default function Input(props: InputProps) { const { label, labelHidden, className } = props; const ref = useRef(null); @@ -42,6 +44,9 @@ export default function Input(props: InputProps) { )} > {label} + {props.isRequired && ( + + )}