From 383b9177848eeefb8c123a7a7ecc0ee391380eea Mon Sep 17 00:00:00 2001 From: Taylor Mullen Date: Fri, 18 Apr 2025 18:08:43 -0400 Subject: Run `npm run format` - This has the entirety of the changes. Part of https://b.corp.google.com/issues/411720532 --- packages/cli/src/ui/components/HistoryDisplay.tsx | 37 +++++++++++------------ 1 file changed, 17 insertions(+), 20 deletions(-) (limited to 'packages/cli/src/ui/components/HistoryDisplay.tsx') diff --git a/packages/cli/src/ui/components/HistoryDisplay.tsx b/packages/cli/src/ui/components/HistoryDisplay.tsx index fe0bf4c1..7565c5bc 100644 --- a/packages/cli/src/ui/components/HistoryDisplay.tsx +++ b/packages/cli/src/ui/components/HistoryDisplay.tsx @@ -17,26 +17,23 @@ interface HistoryDisplayProps { const HistoryDisplay: React.FC = ({ history, onSubmit, -}) => +}) => ( // No grouping logic needed here anymore - ( - - {history.map((item) => ( - - {/* Render standard message types */} - {item.type === 'user' && } - {item.type === 'gemini' && } - {item.type === 'info' && } - {item.type === 'error' && } - - {/* Render the tool group component */} - {item.type === 'tool_group' && ( - - )} - - ))} - - ) -; + + {history.map((item) => ( + + {/* Render standard message types */} + {item.type === 'user' && } + {item.type === 'gemini' && } + {item.type === 'info' && } + {item.type === 'error' && } + {/* Render the tool group component */} + {item.type === 'tool_group' && ( + + )} + + ))} + +); export default HistoryDisplay; -- cgit v1.2.3