From eb1bc662b7054f8236da0aad88ec4bcc64fd9701 Mon Sep 17 00:00:00 2001 From: luizakp Date: Wed, 7 Aug 2024 15:38:38 -0300 Subject: [PATCH] chore: add time as input mode --- src/components/FormBuilder/fields/InputField.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/FormBuilder/fields/InputField.tsx b/src/components/FormBuilder/fields/InputField.tsx index afe3572..29b03c3 100644 --- a/src/components/FormBuilder/fields/InputField.tsx +++ b/src/components/FormBuilder/fields/InputField.tsx @@ -12,13 +12,14 @@ import { Input } from "#/components/ui/Input"; import { withConditional } from "../withConditional"; import { BaseField } from "../types"; +import { cn } from "#/lib"; export interface InputFieldProps extends BaseField { length?: { maximum?: number; minimum: number; // undefined or number }; - mode: "text" | "number"; + mode: "text" | "number" | "time"; type: "input"; } @@ -56,7 +57,7 @@ export const InputField = withConditional( } defaultValue={field.defaultValue} render={({ field: formField }) => ( - + {field.label} {field.description}