refactor(useCommandPaletteHotkeys): read selectedPaletteIndex from store, drop prop (P2-44)

Remove dual-source: option no longer takes selectedPaletteIndex; all reads
go through useAppStore.getState().selectedPaletteIndex inside the keydown
handler.
This commit is contained in:
ZacharyZhang-NY committed 2026-04-16 22:58:12 -04:00
1 parent 2bed06ca64
commit 8dbd0867b0
2 files changed
+5 -7

No files matched your search

-1
View File
@@ -110,7 +110,6 @@ export function App() {
setCommandPaletteSearch: ui.setCommandPaletteSearch,
setSelectedPaletteIndex: ui.setSelectedPaletteIndex,
paletteActions,
selectedPaletteIndex: ui.selectedPaletteIndex,
navigateTo,
commandPaletteSearch: ui.commandPaletteSearch,
});