mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
refactor: remove unused props clearItems, openThemeDialog, onSubmit (#357)
This commit is contained in:
@@ -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} />}
|
||||
|
||||
Reference in New Issue
Block a user