mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Remove memo that was interfering with translations
This commit is contained in:
parent
8f4d56c054
commit
747c3bd552
1 changed files with 4 additions and 6 deletions
|
|
@ -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[]) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue