Browse Source

Remove memo that was interfering with translations

Matt Rubens 11 months ago
parent
commit
747c3bd552
1 changed files with 4 additions and 6 deletions
  1. 4 6
      webview-ui/src/components/chat/ChatView.tsx

+ 4 - 6
webview-ui/src/components/chat/ChatView.tsx

@@ -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[]) => {