diff --git a/components/generic/editable/inputs.tsx b/components/generic/editable/inputs.tsx index 709ea83..78e71c1 100644 --- a/components/generic/editable/inputs.tsx +++ b/components/generic/editable/inputs.tsx @@ -1,11 +1,11 @@ -import { ComponentPropsWithoutRef } from "react" +import { ComponentPropsWithoutRef, ReactNode } from "react" import { FestaMoment } from "../renderers/datetime" import { FestaMarkdownRenderer } from "../renderers/markdown" import { EditingModeBranch } from "./base" import style from "./inputs.module.css" -type TextInputProps = ComponentPropsWithoutRef<"input"> & { value: string } +type TextInputProps = ComponentPropsWithoutRef<"input"> & { value: string, viewPrefix?: ReactNode, viewSuffix?: ReactNode } type FileInputProps = ComponentPropsWithoutRef<"input"> & { value?: undefined } type TextAreaProps = ComponentPropsWithoutRef<"textarea"> & { value: string } @@ -21,7 +21,7 @@ export const EditableText = (props: TextInputProps) => { } view={