Skip to content

Commit 747c3bd

Browse files
committed
Remove memo that was interfering with translations
1 parent 8f4d56c commit 747c3bd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

webview-ui/src/components/chat/ChatView.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -940,12 +940,10 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
940940
[],
941941
)
942942

943-
const placeholderText = useMemo(() => {
944-
const baseText = task ? t("chat:typeMessage") : t("chat:typeTask")
945-
const contextText = t("chat:addContext")
946-
const imageText = shouldDisableImages ? `, ${t("chat:dragFiles")}` : `, ${t("chat:dragFilesImages")}`
947-
return baseText + `\n(${contextText}${imageText})`
948-
}, [task, shouldDisableImages, t])
943+
const baseText = task ? t("chat:typeMessage") : t("chat:typeTask")
944+
const placeholderText =
945+
baseText +
946+
`\n(${t("chat:addContext")}${shouldDisableImages ? `, ${t("chat:dragFiles")}` : `, ${t("chat:dragFilesImages")}`})`
949947

950948
const itemContent = useCallback(
951949
(index: number, messageOrGroup: ClineMessage | ClineMessage[]) => {

0 commit comments

Comments
 (0)