-
+
{field.value
? clients.find((c) => c.id === field.value)?.name
@@ -181,7 +181,7 @@ export function DownloadClientSelect({
className="h-5 w-5 text-gray-400 dark:text-gray-300"
aria-hidden="true" />
-
+
-
{clients
.filter((c) => c.type === action.type)
.map((client) => (
- classNames(
active
@@ -232,9 +232,9 @@ export function DownloadClientSelect({
) : null}
>
)}
-
+
))}
-
+
{meta.touched && meta.error && (
* {meta.error}
@@ -294,13 +294,13 @@ export const Select = ({
>
{({ open }) => (
<>
-
+
+
-
+
{field.value
? options.find((c) => c.value === field.value)?.label
@@ -313,7 +313,7 @@ export const Select = ({
aria-hidden="true"
/>
-
+
-
{options.map((opt) => (
-
classNames(
@@ -359,9 +359,9 @@ export const Select = ({
>
)}
-
+
))}
-
+
>
@@ -395,11 +395,11 @@ export const SelectWide = ({
{({ open }) => (
-
+
+
-
+
{field.value
? options.find((c) => c.value === field.value)?.label
@@ -412,7 +412,7 @@ export const SelectWide = ({
aria-hidden="true"
/>
-
+
-
{options.map((opt) => (
-
classNames(
@@ -464,9 +464,9 @@ export const SelectWide = ({
) : null}
>
)}
-
+
))}
-
+
@@ -512,14 +512,14 @@ export const AgeSelect = ({
{({ open }) => (
<>
-
+
{duration ? options.find(opt => opt.value === duration)?.label : 'Select...'}
-
+
-
+
{options.map((option) => (
-
`relative cursor-default select-none py-2 pl-3 pr-9 ${selected ? "font-bold text-black dark:text-white bg-gray-300 dark:bg-gray-950" : active ? "text-black dark:text-gray-100 font-normal bg-gray-200 dark:bg-gray-800" : "text-gray-700 dark:text-gray-300 font-normal"
@@ -547,9 +547,9 @@ export const AgeSelect = ({
)}
>
)}
-
+
))}
-
+
>
diff --git a/web/src/components/inputs/switch.tsx b/web/src/components/inputs/switch.tsx
index a970a99..5f611a5 100644
--- a/web/src/components/inputs/switch.tsx
+++ b/web/src/components/inputs/switch.tsx
@@ -4,8 +4,8 @@
*/
import type { FieldProps } from "formik";
-import { Field } from "formik";
-import { Switch as HeadlessSwitch } from "@headlessui/react";
+import { Field as FormikField } from "formik";
+import { Field, Label, Description } from "@headlessui/react";
import { classNames } from "@utils";
import { DocsTooltip } from "@components/tooltips/DocsTooltip";
@@ -30,7 +30,7 @@ const SwitchGroup = ({
disabled,
className
}: SwitchGroupProps) => (
-
{label &&
- {tooltip}
) : label}
-
+
{description && (
-
+
{description}
-
+
)}
}
-