refactor(component): rename component to match its filename (#432)
Co-authored-by: Thibault Sottiaux <tibo@openai.com>
This commit is contained in:
committed by
GitHub
parent
e3c8ce49ca
commit
f97557f59f
@@ -12,7 +12,7 @@ import React, { useMemo } from "react";
|
|||||||
// items (e.g. auto‑approved tool‑call batches) that should be rendered
|
// items (e.g. auto‑approved tool‑call batches) that should be rendered
|
||||||
// together.
|
// together.
|
||||||
type BatchEntry = { item?: ResponseItem; group?: GroupedResponseItem };
|
type BatchEntry = { item?: ResponseItem; group?: GroupedResponseItem };
|
||||||
type MessageHistoryProps = {
|
type TerminalMessageHistoryProps = {
|
||||||
batch: Array<BatchEntry>;
|
batch: Array<BatchEntry>;
|
||||||
groupCounts: Record<string, number>;
|
groupCounts: Record<string, number>;
|
||||||
items: Array<ResponseItem>;
|
items: Array<ResponseItem>;
|
||||||
@@ -25,7 +25,7 @@ type MessageHistoryProps = {
|
|||||||
setOverlayMode: React.Dispatch<React.SetStateAction<OverlayModeType>>;
|
setOverlayMode: React.Dispatch<React.SetStateAction<OverlayModeType>>;
|
||||||
};
|
};
|
||||||
|
|
||||||
const MessageHistory: React.FC<MessageHistoryProps> = ({
|
const TerminalMessageHistory: React.FC<TerminalMessageHistoryProps> = ({
|
||||||
batch,
|
batch,
|
||||||
headerProps,
|
headerProps,
|
||||||
// `loading` and `thinkingSeconds` handled by input component now.
|
// `loading` and `thinkingSeconds` handled by input component now.
|
||||||
@@ -78,4 +78,4 @@ const MessageHistory: React.FC<MessageHistoryProps> = ({
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default React.memo(MessageHistory);
|
export default React.memo(TerminalMessageHistory);
|
||||||
|
|||||||
Reference in New Issue
Block a user