Use kbar for highlighting shortcuts, cleanup options

This commit is contained in:
Jackson Harper
2022-07-11 13:06:24 -07:00
parent 552d76a929
commit 4e27ec97f9
4 changed files with 34 additions and 32 deletions

View File

@ -491,18 +491,18 @@ export function HomeFeedContainer(): JSX.Element {
]
const UNACTIVE_ACTIONS = [
createAction({
section: 'Library',
name: 'Sort item in ascending order',
shortcut: ['s', 'o'],
perform: () => setQueryInputs({ ...queryInputs, sortDescending: false }),
}),
createAction({
section: 'Library',
name: 'Sort item in descending order',
shortcut: ['s', 'n'],
perform: () => setQueryInputs({ ...queryInputs, sortDescending: true }),
}),
// createAction({
// section: 'Library',
// name: 'Sort in ascending order',
// shortcut: ['s', 'o'],
// perform: () => setQueryInputs({ ...queryInputs, sortDescending: false }),
// }),
// createAction({
// section: 'Library',
// name: 'Sort in descending order',
// shortcut: ['s', 'n'],
// perform: () => setQueryInputs({ ...queryInputs, sortDescending: true }),
// }),
]
useRegisterActions(searchResults.map(link => ({