diff --git a/web/app/components/base/prompt-editor/index.tsx b/web/app/components/base/prompt-editor/index.tsx index a87a51cd50..6ad832b595 100644 --- a/web/app/components/base/prompt-editor/index.tsx +++ b/web/app/components/base/prompt-editor/index.tsx @@ -1,7 +1,7 @@ 'use client' import type { FC } from 'react' -import { useEffect } from 'react' +import React, { useEffect } from 'react' import type { EditorState, } from 'lexical' @@ -66,7 +66,7 @@ export type PromptEditorProps = { compact?: boolean wrapperClassName?: string className?: string - placeholder?: string | JSX.Element + placeholder?: string | React.JSX.Element placeholderClassName?: string style?: React.CSSProperties value?: string diff --git a/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx b/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx index 972982cacb..d716fe5880 100644 --- a/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx +++ b/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx @@ -1,29 +1,55 @@ import React from 'react' import Input from '@/app/components/base/input' -import Button from '@/app/components/base/button' -import Tooltip from '@/app/components/base/tooltip' -import { RiSendPlaneLine } from '@remixicon/react' +import PromptEditor from '@/app/components/base/prompt-editor' +import TagLabel from './tag-label' +import Button from '../../../button' +import { useTranslation } from 'react-i18next' +import { getKeyboardKeyNameBySystem } from '@/app/components/workflow/utils' const InputField: React.FC = () => { + const { t } = useTranslation() return ( -
- Please provide the required information. -
+