From 6eab91025b610e2a165dbf4cdc2451e5cc21d505 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Sat, 8 Feb 2025 21:47:31 -0600 Subject: [PATCH] Fix forms for Tailwind 4 --- src/components/FieldSetWithStatus.tsx | 58 ++++++++++++++++----------- src/components/TagInput.tsx | 6 +-- tailwind.css | 2 + 3 files changed, 39 insertions(+), 27 deletions(-) diff --git a/src/components/FieldSetWithStatus.tsx b/src/components/FieldSetWithStatus.tsx index 305ba493..1ccac213 100644 --- a/src/components/FieldSetWithStatus.tsx +++ b/src/components/FieldSetWithStatus.tsx @@ -1,11 +1,12 @@ 'use client'; -import { LegacyRef } from 'react'; +import { Ref } from 'react'; import { useFormStatus } from 'react-dom'; import Spinner from './Spinner'; import { clsx } from 'clsx/lite'; import { FieldSetType, AnnotatedTag } from '@/photo/form'; import TagInput from './TagInput'; +import { FiChevronDown } from 'react-icons/fi'; export default function FieldSetWithStatus({ id, @@ -44,7 +45,7 @@ export default function FieldSetWithStatus({ readOnly?: boolean capitalize?: boolean type?: FieldSetType - inputRef?: LegacyRef + inputRef?: Ref accessory?: React.ReactNode hideLabel?: boolean }) { @@ -89,28 +90,37 @@ export default function FieldSetWithStatus({ }
{selectOptions - ? + ?
+ +
+ +
+
: tagOptions ?