refactor: remove unused props clearItems, openThemeDialog, onSubmit (#357)

This commit is contained in:
Brandon Keiji
2025-05-15 16:12:15 +00:00
committed by GitHub
parent 39d57ead1a
commit c6bca64499
5 changed files with 1 additions and 20 deletions

View File

@@ -127,12 +127,10 @@ export const App = ({
const { streamingState, submitQuery, initError, pendingHistoryItem } =
useGeminiStream(
addItem,
clearItems,
refreshStatic,
setShowHelp,
config,
setDebugMessage,
openThemeDialog,
handleSlashCommand,
);
const { elapsedTime, currentLoadingPhrase } =
@@ -230,7 +228,6 @@ export const App = ({
<HistoryItemDisplay
key={'history-' + historyItem.id}
item={historyItem}
onSubmit={submitQuery}
/>
);
}}
@@ -240,7 +237,6 @@ export const App = ({
// TODO(taehykim): It seems like references to ids aren't necessary in
// HistoryItemDisplay. Refactor later. Use a fake id for now.
item={{ ...pendingHistoryItem, id: 0 }}
onSubmit={submitQuery}
/>
)}
{showHelp && <Help commands={slashCommands} />}