feat: Add searching of sub actions in command menu (#2845)

This commit is contained in:
Tom Moor
2021-12-11 09:34:16 -08:00
committed by GitHub
parent 7c6ce44fe1
commit e5b4186faa
7 changed files with 88 additions and 52 deletions

View File

@@ -23,7 +23,9 @@ function CommandBar() {
const { rootAction } = useKBar((state) => ({
rootAction: state.currentRootActionId
? (state.actions[state.currentRootActionId] as CommandBarAction)
? ((state.actions[
state.currentRootActionId
] as unknown) as CommandBarAction)
: undefined,
}));