|
|
@@ -940,12 +940,10 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
|
|
|
[],
|
|
|
)
|
|
|
|
|
|
- const placeholderText = useMemo(() => {
|
|
|
- const baseText = task ? t("chat:typeMessage") : t("chat:typeTask")
|
|
|
- const contextText = t("chat:addContext")
|
|
|
- const imageText = shouldDisableImages ? `, ${t("chat:dragFiles")}` : `, ${t("chat:dragFilesImages")}`
|
|
|
- return baseText + `\n(${contextText}${imageText})`
|
|
|
- }, [task, shouldDisableImages, t])
|
|
|
+ const baseText = task ? t("chat:typeMessage") : t("chat:typeTask")
|
|
|
+ const placeholderText =
|
|
|
+ baseText +
|
|
|
+ `\n(${t("chat:addContext")}${shouldDisableImages ? `, ${t("chat:dragFiles")}` : `, ${t("chat:dragFilesImages")}`})`
|
|
|
|
|
|
const itemContent = useCallback(
|
|
|
(index: number, messageOrGroup: ClineMessage | ClineMessage[]) => {
|