From f97557f59f6a37c57e074627ff678efc3db9d41c Mon Sep 17 00:00:00 2001 From: Abdelrhman Kamal Mahmoud Ali Slim Date: Sun, 20 Apr 2025 22:21:49 -0700 Subject: [PATCH] refactor(component): rename component to match its filename (#432) Co-authored-by: Thibault Sottiaux --- codex-cli/src/components/chat/terminal-message-history.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/codex-cli/src/components/chat/terminal-message-history.tsx b/codex-cli/src/components/chat/terminal-message-history.tsx index fe0bea55..8171f629 100644 --- a/codex-cli/src/components/chat/terminal-message-history.tsx +++ b/codex-cli/src/components/chat/terminal-message-history.tsx @@ -12,7 +12,7 @@ import React, { useMemo } from "react"; // items (e.g. auto‑approved tool‑call batches) that should be rendered // together. type BatchEntry = { item?: ResponseItem; group?: GroupedResponseItem }; -type MessageHistoryProps = { +type TerminalMessageHistoryProps = { batch: Array; groupCounts: Record; items: Array; @@ -25,7 +25,7 @@ type MessageHistoryProps = { setOverlayMode: React.Dispatch>; }; -const MessageHistory: React.FC = ({ +const TerminalMessageHistory: React.FC = ({ batch, headerProps, // `loading` and `thinkingSeconds` handled by input component now. @@ -78,4 +78,4 @@ const MessageHistory: React.FC = ({ ); }; -export default React.memo(MessageHistory); +export default React.memo(TerminalMessageHistory);